Question: Homework: Write a program to read and print the elements of the matrix (4,4)K, then find: 1) The sum of the elements located above the

 Homework: Write a program to read and print the elements of

Homework: Write a program to read and print the elements of the matrix (4,4)K, then find: 1) The sum of the elements located above the main diameter. 2) The sum of the elements located on the main diameter 3) The sum of the elements under the main diameter. 4) The sum of the elements above the secondary diameter. 5) The sum of the elements located on the secondary diameter. 6) The sum of the elements located under the secondary diameter. 7) The product of the main diameter elements. 8) The product of the elements of the secondary diameter. Note: All the above points are in one program and in sequence, and the outputs are also written. The matrix is 11:34 5 10 20 30 15 11 23 80 25 2 4 6 7 12 44 70

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!