Question: Problem 1: Write down a C program to do the following: a) Declare a two dimensional array of dimension 4 rows and 5 columns b)


Problem 1: Write down a C program to do the following: a) Declare a two dimensional array of dimension 4 rows and 5 columns b) Fill in the contents of this array from user inputs (use scanf) c) Print the contents of your two dimensional array in proper format 4 rows and 5 columns as a matrix) d) Compute the row sum for the above two dimensional array. e) Compute the column sum for the above two dimensional array. Example: If the user inputs the following two dimensional array 12 5 9 3 8 2 7 1 5 7 2 4 2 1 3 5 1 5 Row sum: I 12 5 9 3 8 37 7 22 i 2 13 2 4 2 1 12 1 5 18 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
