#include <stdio.h>
void main()
{
int num1,num2,num3;
printf("\n 输入第一个数:");
scanf("%d",&num1);
printf("\n 输入第二个数:");
scanf("%d",&num2);
printf("\n 输入第三个数:");
scanf("%d",&num3);
if((num1>=num2)&&(num1>=num3))
printf("\n %d\n",num1);
else if((num2>=num1)&&(num2>=num3))
printf("\n %d\n",num2);
else
printf("\n%d\n",num3);
}
void main()
{
int num1,num2,num3;
printf("\n 输入第一个数:");
scanf("%d",&num1);
printf("\n 输入第二个数:");
scanf("%d",&num2);
printf("\n 输入第三个数:");
scanf("%d",&num3);
if((num1>=num2)&&(num1>=num3))
printf("\n %d\n",num1);
else if((num2>=num1)&&(num2>=num3))
printf("\n %d\n",num2);
else
printf("\n%d\n",num3);
}
[此贴子已经被作者于2007-8-9 15:58:30编辑过]
ACMer的QQ群:33741351
单片机QQ群:55130117