Home > Back-end >  For bosses to give directions program (2) (3) item and programming question 5?
For bosses to give directions program (2) (3) item and programming question 5?

Time:09-18

CodePudding user response:

2 is reverse output, so it is
654321

3 is output from two dimensional array to find the minimum, the minimum value and position of
Min=5.77, m=2, n=1
The third line of the second column, the array subscript ranks to minus 1

5
Int main () {
Int I, CNT=0;
Double x [40], sum=0, avg=0;
for (i=0; i<40; I++) {
Lf the scanf (" % ", & amp; X [I]);//input score
The sum +=x [I];//summing
}
Avg=sum/40;//averaging
for (i=0; i<40; I++) {
If (x [I] }
Printf (" the number of below average: % d \ n ", CNT);
}
  • Related