|
[mw_shl_code=c,true]#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c;
while (1)
{
system ("cls");
printf("请输入3个要比较的数,然后按回车:");
scanf("%d %d %d",&a,&b,&c);
if (a>=b && a>=c) printf(" %d最大\n",a);
if (b>a && b>=c) printf(" %d最大\n",b);
if (c>a && c>b) printf(" %d最大\n",c);
system("pause");
}
return 0;
}[/mw_shl_code]
|
|