public static int SumLine(int[,] m,int line)
for(int j=0;j<m.GetLength(1);j++)
public static int SumCol(int[,] m,int col)
for(int i=0;i<m.GetLength(0);i++)
public static int SumDig(int[,] m)
for(int i=0;i<m.GetLength(0);i++)
public static int SumSecDig(int[,] m)
for(int i=0;i<m.GetLength(0);i++)
sum+=m[i,m.GetLength(0)-i-1];
public static bool MagicSquare(int[,] m)
if(m.GetLength(0)!=m.GetLength(1))
for(int i=0;i<m.GetLength(0);i++)
for(int j=0;j<m.GetLength(1);j++)
public static void Main()
Console.WriteLine("type number of rows");
row=int.Parse(Console.ReadLine());
Console.WriteLine("type number of colomms");
col=int.Parse(Console.ReadLine());
int[,] m=new int[row,col];
for(int i=0;i<m.GetLength(0);i++)
for(int j=0;j<m.GetLength(1);j++)
Console.WriteLine("type number");
m[i,j]=int.Parse(Console.ReadLine());
Console.WriteLine("magic square");
Console.WriteLine("not magic suare");