I have finished all the functions except one. I need help with writing a boolean function to determine if the magic square is a magic square. I don't completely understand boolean functions so any help would be appreciated.

Thank you

```
#include<iostream>
using namespace std;
#include<fstream>
//load the array
void load2D(int &n, int square[50][50])
{
ifstream infile;
infile.open("magic.dat");
infile >>n;
for (int i =0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
infile >>square[i][j];
}
}
}
//Print the 2 dimensional arrray
void print2D(int n, int square[50][50])
{
for (int i =0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
cout <<square[i][j]<<" ";
}
cout <<endl;
}
}
int main()
{
int n;
int square[50][50];
load2D(n, square);
print2D(n,square);
system("pause");
return 0;
}
```