Question: Write a program in C++ that reads from a file and determines if a given N matrix is a magic square, where N = 1
Write a program in C++ that reads from a file and determines if a given N matrix is a magic square, where N = 1 to 10
Do not be concerned with error checking the file input format for errors
The magic.txt file input data will have the following format: N will tell the number of rows and columns per row to read in for each N square
3
x x x
x x x
x x x
2
x x
x x
:
:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
