plezz帮我做这个安排... [英] plezz help me doing this assgment...
本文介绍了plezz帮我做这个安排...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
构造一个可以接收并显示2个变量的C程序????
construct a C program that can receive and displays 2 variable????
推荐答案
/* Include the basic library of C */
#include "stdio.h"
int main() /* The enter point of your program */
{
/* Definitions of our variables. */
int x,y;
/* We will be using the function scanf to read the variables from the user. */
scanf("%d",&x); /* %d indicates that we want to get an integer. */
scanf("%d",&y); /* There are other indicators for different types of data (read about them...) */
printf("The numbers were: %d %d",x,y); /* print x and y - again - as integers. */
return 0; /* Return 0 to the OS. */
}
这篇关于plezz帮我做这个安排...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文