Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <stdio.h>
  2. int main () {
  3. int C[2][3], Ct[3][2];
  4. int l, c;
  5. for (l = 0; l < 2; l++) {
  6. for (c = 0; c < 3; c++) {
  7. printf("\nEntre Com o Elemento de Linha [%d] e Coluna [%d]: ", l+1, c+1);
  8. scanf("%d", &C[l][c]);
  9. Ct[l][c] = C[l][c];
  10. }
  11. }
  12. printf("\n\tMatriz Transposta\n");
  13. for (l = 0; l < 3; l++) {
  14. for (c = 0; c < 2; c++) {
  15. printf("%d\t", Ct[l][c]);
  16. }
  17. printf("\n");
  18. }
  19. printf("\n");
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement