Rotate a matrix 270 degree AntiClockWise
#include<stdio.h> void printMt(int mat[][4]) { int i, j; for (i = 0; i < 4; i++) { for (j = 0; j < 4; j++) { printf("%d ", mat[i][j]); } printf("\n"); } } void AntiClock90(int mat[][4]) { int i, j, t; for (i = 0; i < 4 / 2; i++) { for (j = i; j < 4; j++) { t = mat[4 - i - 1][j]; mat[4 - i - 1][j] = mat[i][j]; mat[i][j] = t; } } printf("90 anticlock\n"); printMt(mat); } void Anti270(int mat1[][4]) { int i,j,t; for(i=0; i<4/2; i++) { ...
kya baat hai bhai blog chala raha hai......
ReplyDeleteThis comment has been removed by the author.
Delete