Question: Recommended time: 20 mn 25 pts) Write a CH program (Just a main function) which declares a two-dimensional may of integen A 14 [4 and
Recommended time: 20 mn 25 pts) Write a CH program (Just a main function) which declares a two-dimensional may of integen A 14 [4 and fill it with values entered by the user. The program must calculate the sum of main diagonal elements, the sum of first secondary diagonal elements and the sum of second secondary diagonal elements Finally, the program must determine whether all of these values are equal or not and must displays corresponding message. The three dingonals are represented in the diagram below: 09 Let A The sum of each diagonal -11 (they are equal) - First secondary diagonal Main diagonal Second secondary diagonal For this example, your program should display: 'The diagonals are equal
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
