int main(void) { double table[5][3] = { {0.0,1.0,0.0}, {3.0, 1.0, 2.0}, {2.0, 4.0, 2.0}, {5.0, 1.0, 2.0}, {4.0, 3.0, 1.0} }; int col; for(col = 0; col < 3; col++) printf("%f\n", table[0][col] + table[1][col] + table[2][col] + table[3][col] + table[4][col]); return 0; }
Advertisement
79
pages
Ch8r8
Advertisement