#include <stdio.h>
int main()
{
int a,b,t;
scanf("%d,%d",&a,&b);
if(a>b)
t=a;
else
t=b;
printf("%d",t);
return 0;
}
C语言编程题 4.编写一个程序,从键盘上输入两个数据,打印出较大的那个数据。
于 2022-01-23 15:01:19 首次发布
#include <stdio.h>
int main()
{
int a,b,t;
scanf("%d,%d",&a,&b);
if(a>b)
t=a;
else
t=b;
printf("%d",t);
return 0;
}