#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); } }(•̀ᴗ•́)و
#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); } }(•̀ᴗ•́)و