5: 2D Array Write a program that initialize each of the element of a 3x3 array from user's input using the following inp
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
5: 2D Array Write a program that initialize each of the element of a 3x3 array from user's input using the following inp
5: 2D Array Write a program that initialize each of the element of a 3x3 array from user's input using the following input sequence “8, 1, 6, 3, 5, 7, 4, 9, 2” and then print out the sum of each row, column and diagonal. For example, the program will generate a sum of 15 for each row, column and diagonal with the given input sequence. In other words, output the sum of each of the three rows, each of the three columns and each of the two diagonals.