Red de conocimientos sobre prescripción popular - Conocimiento del confinamiento - Utilice el lenguaje C para transponer una matriz plástica de 3*3 sin utilizar el método del puntero (el método más básico). urgente

Utilice el lenguaje C para transponer una matriz plástica de 3*3 sin utilizar el método del puntero (el método más básico). urgente

Espere un momento. Estará listo pronto. Escribiré el código fuente para usted.

Finalmente, aquí está el código:

//Transponer una matriz con forma de 3*3 en lenguaje C,

# include ltstdio.h gt

p>

void main()

{?int a[3][3];

int b[3][3];

int i, j, t = 0;

Printf("Ingrese 9 elementos de la matriz original");

for(I = 0; ilt3; i) p>

for(j = 0; j lt3; j )

{? t;

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

Si (t3==0)

{

printf(" \ n ");

}

}//Inicializar matriz;

for(I = 0;i lt3;i)

for(j = 0;j lt3;j)

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

printf("\n");

Printf("La matriz convertida es:\n " );

t = 0;

for(I = 0;i lt3;i)

for(j = 0;j lt3;j)

{

t;

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

printf(" \ n ");

}

Printf("Gracias por usar * * * * * * * * * * * * * * * * * * * * * * * * * * \n ");

}

Este es el resultado de mi carrera: