C Programs: Double Dimension Numeric Array

html

C Program to Take input for the elements of a double dimension array of dimension R X C. Further display the elements in the form of a matrix.

C Program to Take input for the elements of a double dimension array of dimension R X C. Further display the elements in the form of a matrix. Also calculate and print sum of all the elements.
Example:
1 2 3
4 5 6
7 8 9
Sum = 45

C Program to Take input for the elements of a double dimension array of dimension R X C. Further display the elements in the form of a matrix. Calculate and print sum of row elements ,get the following output

1 2 3 6
4 5 6 15
7 8 9 24

C Program to Take input for the elements of a double dimension array of dimension R X C. Further display the elements in the form of a matrix. Get the following output

1 2 3 6
4 5 6 21
7 8 9 45

Transpose of matrix
1 2 3 1 4 7
4 5 6 => 2 5 8
7 8 9 3 6 9

 

C Program to Take input for the elements of a double dimension array of dimension R X C. Further display the elements in the form of a matrix. calculate and print sum of right diagonal elements
Note: condition: Matrix should be a square matrix (i.e. number of rows and cols should be same)
1 2 3
4 5 6
7 8 9
Sum : 15 ( ie Sum of (1+5+9))

C Program to Take input for the elements of a double dimension array of dimension R X C. Further display the elements in the form of a matrix. calculate and print sum of left diagonal elements
Note: condition: Matrix should be a square matrix (i.e. number of rows and cols should be same)
1 2 3
4 5 6
7 8 9
Sum : 15 ( ie Sum of (3+5+7))

Sum of two matrix

Conditions:
The dimensions of both matrix should be same. i.e. number of rows and columns in both should be same.

Difference between two matrix

Conditions:
The dimensions of both matrix should be same. i.e. number of rows and columns in both should be same.

Product Of two matrix

Condition: number of columns in 1st matrix should be equal to the numbers of rows in the 2nd matrix.

Number Of Visitors

0238211