Write a program that reads a number n from the keyboard and then reads n2 integers into an n-by-n two dimensional array and checks to see if the numbers form a magic square. In a magic square, the sum of all the elements in every row, column and along both diagonals is the same.