Computer Science, asked by bhavanakodavali92, 9 months ago

Write a program to find whether a given matrix is a magic square or not

Answers

Answered by YandereSenpai234
0

Answer:

C++ program to check the given matrix is magic square or not

#include <bits/stdc++.h>

using namespace std;

int isMagicSquare(int matrix[50][50], int n, int m);

int main(){

int matrix[50][50], n, m;

cout<<"Enter the length of row of the matrix: ";

cin >> m;

cout<<"Enter the length of column of the matrix: ";

Similar questions