#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
int x,y,result;//定义x,y,result
printf("Input two integer numbers:");//输出一行提示信息
scanf("%d %d",&x,&y);//输入x,y的值
if(x<y) result=y;
else result=x;
/*比较x和y的大小,并把结果赋值给result*/
printf("%d is max number.\n",result);//输出result的值
return 0;//使函数返回值为0
}//函数结束