#include void ruotaq(int mat1[4][4], int mat2[4][4], int i0,int j0); int main() { int mat1[4][4]={{1,2,3,4},{5,6,7,8},{9,10,11,12},{13,14,15,16}}; int mat2[4][4]; for(int i=0;i<4;i=i+2) for(int j=0;j<4;j=j+2) ruotaq(mat1,mat2,i,j); for(int i=0;i<4;i=i+1) { for(int j=0;j<4;j=j+1) printf("%d\t",mat1[i][j]); printf("\n"); } printf("\n");printf("\n"); for(int i=0;i<4;i=i+1) { for(int j=0;j<4;j=j+1) printf("%d\t",mat2[i][j]); printf("\n"); } } void ruotaq(int mat1[4][4], int mat2[4][4], int i0,int j0) { for(int i=i0;i