0

Magic Square

The user enters an odd number, N, and a magic square of N rows and N columns appear. Does anyone know how to do this in C?

14th Apr 2018, 8:42 AM
F A
F A - avatar
1 Resposta
0
Hi F A, Use an "IF" to evaluate the number (even / odd) - true => use the for loop inside another for loop. One is for the rows and one for the columns. - false => error message. Successes!
14th Apr 2018, 10:15 AM
Luciano Ariel Caputi
Luciano Ariel Caputi - avatar