Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Find a matrix of 33 shapes.
Find a matrix of 33 shapes.
Just a moment, please. It'll be ready in a minute. I'll help you write the source code.

Finally, here is the code:

//Transpose a 3*3 forming matrix in C language,

# include & ltstdio.h & gt

void main()

{? int a[3][3];

int b[3][3];

int i,j,t = 0;

Printf ("Please enter 9 elements of the original matrix");

for(I = 0; I<3; i++)

for(j = 0; j & lt3; j++)

{? ++ t;

scanf("%d ",& ampa[I][j]);

If (t%3==0)

{

printf(" \ n ");

}

}//Initialize the matrix;

for(I = 0; I<3; i++)

for(j = 0; j & lt3; j++)

b[j][I]= a[I][j];

printf(" \ n ");

Printf ("The converted matrix is: \ n");

t = 0;

for(I = 0; I<3; i++)

for(j = 0; j & lt3; j++)

{

++ t;

printf(" %d ",b[I][j]);

If (t%3==0)

printf(" \ n ");

}

Printf ("Thank you for using * * * * * * * * * * * * * * * * * * * * * * * * * \ n");

}

This is the result of my running: