输入两个数 输出其中最大数c 语言编程

输入两个数 输出其中最大数c 语言编程

#include<stdio.h> 
int main() 

int a,b; 
printf("请输入两个数:\n");
scanf("%d,%d",&a,&b);
printf("最大的数是:");
if(a>b)
printf("%d\n", a); 
else
printf("%d\n", b); 
return 0; 
}

温馨提示:答案为网友推荐,仅供参考
第1个回答  2016-05-26
#inlcude<stdio.h>
main()
{
int a,b t;
printf("input a,b\n");
scanf("%d%d",&a,&b);
if(a>b)
t=a;
else t=b;
printf("%d\n",t)
}本回答被网友采纳
相似回答