Page 1 of 1

5: 2D Array Write a program that initialize each of the element of a 3x3 array from user's input using the following inp

Posted: Mon Jun 06, 2022 1:05 pm
by answerhappygod
5 2d Array Write A Program That Initialize Each Of The Element Of A 3x3 Array From User S Input Using The Following Inp 1
5 2d Array Write A Program That Initialize Each Of The Element Of A 3x3 Array From User S Input Using The Following Inp 1 (15.65 KiB) Viewed 33 times
C Format
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.