JAVA MAGIC SQUARE
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. This is an activity so we should not ask our prof about this >.<
Input size of magic square:2
Invalid. Size should be odd
Input size again: 3
6 1 8
7 5 3
2 9 4
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. This is an activity so we should not ask our prof about this >.<
Input size of magic square:2
Invalid. Size should be odd
Input size again: 3
6 1 8
7 5 3
2 9 4
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
