Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5.   int matriz[3][3];
  6.   printf("leitura\n");
  7.   for(int l=0;l<3;l++){
  8.     for(int c=0;c<3;c++){
  9.       printf("matriz[%d][%d]: ",l,c);
  10.       scanf("%d", &matriz[l][c]);
  11.     }
  12.   }
  13.   printf("Escrita \n \n");
  14.   for(int l=0;l<3;l++){
  15.     for(int c=0;c<3;c++){
  16.       printf("%d ",matriz[l][c]);
  17.     }
  18.     printf("\n");
  19.   }
  20.   return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement