/************************************************************* * Section 15 * M/c No : M * Roll No : 18CS100XY * Names : Anirban Ghose, Soumyajit Dey, Aritra Hazra * Problem No : LT1-EVEN-1 * Description : Program to rotate an integer matrix clock-wise **************************************************************/ #include #include #include // printing n x n matrix void printMatrix(int **mat, int n) { int i, j; for (i=0; i to Continue OR Type \"exit\" to Terminate: "); counter = 0; while( (ch=getchar())!='\n' ) { if( (counter == 0) && (ch == '\n') ) { break; } exitYes[counter++] = ch; } if (counter && !strcmp(exitYes,"exit")) { break; } } } } return 0; }