CodePudding user response:
Reference:# include & lt; stdio.h>
Int main ()
{
Int n, flag, Max=0, min=101, score [10]={77,89,56,86,90,69,98,78,89,95};
While (1) {
flag=1;
The scanf (" % d ", & amp; N);
If (n==1000) break;
for(int i=0; i<10; I++) {
If (score==n) [I] {
Printf (" \ n number: % d ", I + 1);
Flag=0;
//break;
}
}
If (flag) printf (" not found \ n ");
printf("\n");
}
for(int i=0; i<10; I++) {
If (maxIf (min> Score [I]) min=score [I];
}
Printf (" Max=% d, min=% d \ n ", Max, min);
return 0;
}