C PROGRAM , TO SUM OF TWO DIAGONALS AND SUM OF ELEMENTS OF EACH DIAGONAL IN A MATRIX.

 C PROGRAM , TO SUM OF TWO DIAGONALS AND SUM OF ELEMENTS OF EACH DIAGONAL.

EX:

enter the rows and columns 

3 3 

enter the elements in the matrix

1  2  3

4  5  6

7  8  9

sum of the elements in the first diagonal is 15

sum of the elements in the second diagonal is 15

sum of the two diagonals is 30.

..........*****..........*****.........*****.........

click to RUN

               
         previous program                       
                        
                                LEARN  WITH JAGADEESH

                                    copyright© to jagadeesh


Post a Comment