main()
{
int i,a,max=0;
printf("\nplease enter 4 integers\n");
for(i=1;i<=4;i++)
{
scanf("%d",&a);
if(a>max)
max=a;
}
printf("the max value is %d",max);
getch();
}
测试成功..不好意思..刚刚太粗心了..
谢谢大家了...
----------------解决方案--------------------------------------------------------