求最大值
求最大值
http://www.nowcoder.com/questionTerminal/d54521e5efa242e8a7fd6ae36f6cf70d
#include <stdio.h> int main(){ int a[10],i,max; while(scanf("%d",&a[0])!=EOF){ for(i=1,max=a[0];i<10;i++){ scanf("%d",&a[i]); if(a[i]>max) max=a[i]; } printf("max=%d\n",max); } }(•̀ᴗ•́)و