main (){int num[20],i,max;max=0;for(i=0;i<20;i++){printf("please input the number: %d",num[i+1]);scanf("%d",num[i]);}for(i=0;i<20;i++){if(num[i]>max) max=num[i];}printf("Max number is: %d",max);}顺便解释下.谢了..
[此贴子已经被作者于2006-12-25 22:38:32编辑过]