#includeint main(){ int num,sum=0,order=0,max=0; int i=1; while(scanf("%d",&num)!=EOF) { if(num==0) break; if(num>0) sum+=num; if(num>max) { max=num; order=i; } i++; } printf("求和为:%d\n",sum); printf("最大数:第%d个数:%d\n",order,max);}