A magic square is a two-dimensional array of positive integers such that the sum of each row, column, and diagonal is the same constant. The following example is a magic square whose constant is 34:
Write a program that takes 16 integers as inputs. The program should determine whether or not the square is a magic square and display the result.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here