Question: Write a magic square checker in C that checks a users input and then output if it is a magic square or if any of
Write a magic square checker in C that checks a users input and then output if it is a magic square or if any of the rows columns or diagonals dont work, output should look like these examples



Enter in the values: 4 9 2 3 5 7 8 1 6 You entered: 4 9 2 3 5 7 8 1 6 Analyzing... You have a magic square! Enter in the values: 0 9 2 3 5 7 8 1 6 092 3 5 7 8 1 6 Analyzing. Row 0 [0, 9, 2] does not work! Column 0 [0, 3, 8] does not work! Diagonal o does not work! This is not a magic square! Enter in the values: 1 2 3 4 5 6 7 8 9 You entered: 1 2 3 4 5 6 7 8 9 Analyzing... Row 0 [1, 2, 3] does not work! Row 2 [7, 8, 9] does not work! Column 0 [1, 4, 7] does not work! Column 2 [3, 6, 9) does not work! This is not a magic square
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
