How to print a 3Ɨ3 matrix in which sum of all rows and columns is 15 including the diagonals and numbers upto 9 can only be used that is we can use only 1-9 without repeating the same number twice and without taking any input from the user. | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

How to print a 3Ɨ3 matrix in which sum of all rows and columns is 15 including the diagonals and numbers upto 9 can only be used that is we can use only 1-9 without repeating the same number twice and without taking any input from the user.

using array

2nd Oct 2016, 8:02 AM
Asim
Asim - avatar
2 Respostas
- 1
a char array?
2nd Oct 2016, 10:11 AM
Raul
Raul - avatar
- 1
constant char matrix = { } I think
2nd Oct 2016, 10:12 AM
Raul
Raul - avatar