88问答网
所有问题
输入两个数 输出其中最大数c 语言编程
输入两个数 输出其中最大数c 语言编程
举报该问题
推荐答案 2016-05-26
#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;
}
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://88.wendadaohang.com/zd/tcMSMSgaMtM1cacaKS.html
其他回答
第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)
}
本回答被网友采纳
相似回答
大家正在搜
相关问题
编写一个程序 输入四个数 输出其中最大者
C语言编程 输入两个数,输出他们的和
编写函数f 实现两个数乘法运算 c语言编程
输入三个整数,输出其中最大值,用C语言的代码怎么编程,求大神...
C语言编程:输入一个数,输出该数的5倍和10倍
输入两个整数a和b,把这两个数由小到大输出。java编程
两个数比较大小,编程是输出大的,为什么结果是小的
用c语言,输入n个数按大小顺序排列输出