Guys can you help me out with these? i use JAVA language
i want to make a magic square that the initial value would be 1, the 1 should always be at the 1st row and middle column and it should be look like this it only accepts odd numbers. I'm just a student and really wants to do this thing in our activity at school but so hard.
Input size of magic square:2
Invalid. Size should be odd
Input size again: 3
6 1 8
7 5 3
2 9 4
the logic in solving this magic square should be down down left only.
i tried to search in google but can't find anything that'll match what i'm searching for. Please help me out with these. Thanks!!! and more power to us
i want to make a magic square that the initial value would be 1, the 1 should always be at the 1st row and middle column and it should be look like this it only accepts odd numbers. I'm just a student and really wants to do this thing in our activity at school but so hard.
Input size of magic square:2
Invalid. Size should be odd
Input size again: 3
6 1 8
7 5 3
2 9 4
the logic in solving this magic square should be down down left only.
i tried to search in google but can't find anything that'll match what i'm searching for. Please help me out with these. Thanks!!! and more power to us