Home > Back-end > Why is the first line is true of the average, behind two lines is wrong, and points out that the err
Why is the first line is true of the average, behind two lines is wrong, and points out that the err
Time:09-20
An average each program for two-dimensional array
# include & lt; Stdio. H> #include Float business (int * x, int l, int j) { int i; Float s=0.0; for(i=0; i{ S=s + x (x + 4 * j + I); } S=s/l; return s; } Int main () { Int h, l, a [20] [20], I, j; Printf (" input array lines: "); The scanf (" % d ", & amp; H); Printf (" input array of the number of columns: "); The scanf (" % d ", & amp; L); Printf (" input array: \ n "); for(i=0; ifor(j=0; JThe scanf (" % d ", a [I] + j). for(i=0; i{ Printf (" % d as follows: the average % f \ n ", I + 1, business (* a, l, I)); } return 0; }