- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int a,b,c;
- printf("请分别输入三个数(不是小数)");
- system("pause");
- scanf("%d %d %d",&a,&b,&c);
- system("color E2");
- if(a>=b && a>=c) printf("%d最大",a);
- if(b>a && b>=c) printf("%d最大",b);
- if(c>a && c>b) printf("%d最大",c);
- return 0;
- }
复制代码 |