#include #define ROWS 5 #define COLS 4 int main(void) { double table [ROWS][COLS] = {{ 3.1, 5.5, 2.7, 19.3}, { 0.2, 15.4, 16.9, -3.0}, { 7.2, 5.4, 18.0, 13.7}, {17.8, 15.4, 18.6, 3.0}, { 7.1, -5.4, 8.7, 0.3}}; double min_el = table[0][0], max_el = table[0][0]; int i,j; for(i = 0; i < ROWS; i++) for(j = 0; j < COLS; j++){ if (table[i][j] < min_el) min_el = table[i][j]; if (table[i][j] > max_el) max_el = table[i][j]; }; printf("\nThe minimun element is %f, and the maxium is %f\n\n", min_el, max_el); return 0; }