Rutuj Mirzapurerutuz.hashnode.devยทJul 19, 2023Given a matrix of dimensions n x n having elements 1 to n*n distinct elements, check whether the matrix is magic square or not.A magic square is a square that has the same sum along all rows, columns and diagonals. Input format There are n + 1 lines of input. The first line contains the integer n. The next n lines contain n space-separated elements. Output format Print "Yes"...DSAAdd a thoughtful commentNo comments yetBe the first to start the conversation.