#include <stdio.h>
int main(int argc, const char * argv[]) {
int a,b,c,max;
a = b = c = max = 0;
printf("请输入三个数,并以逗号分隔开:\n");
scanf("%d,%d,%d",&a,&b,&c);
max = a >= b? a : b;
max = max >= c? max : c;
printf("最大数是%d\n",max);
return 0;
请输入三个数,并以逗号分隔开:
555555,77777777,88888888888
最大数是917737016
Program ended with exit code: 0
|
|