// program for MAGIC MATRIX #include #include #include #define MAX 5 void show(int mat[MAX][MAX], int size); int sum(int mat[MAX][MAX], int ct, int size, char ch); void main() { int mat[MAX][MAX]; int size,flag=0; clrscr(); do { printf("\nEnter the Size of the matrix (Less than %d please): ",MAX); size = getche(); size-= 0x30; } while(size<1 || size>5); for(register int j=0; j