Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main () {
- int C[2][3], Ct[3][2];
- int l, c;
- for (l = 0; l < 2; l++) {
- for (c = 0; c < 3; c++) {
- printf("\nEntre Com o Elemento de Linha [%d] e Coluna [%d]: ", l+1, c+1);
- scanf("%d", &C[l][c]);
- Ct[l][c] = C[l][c];
- }
- }
- printf("\n\tMatriz Transposta\n");
- for (l = 0; l < 3; l++) {
- for (c = 0; c < 2; c++) {
- printf("%d\t", Ct[l][c]);
- }
- printf("\n");
- }
- printf("\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement