Advertisement
Josif_tepe

Untitled

Jan 8th, 2024
853
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.44 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3.  
  4. int main(int argc, const char * argv[]) {
  5.     int n, m;
  6.     scanf("%d%d", &n, &m);
  7.    
  8.     int mat[n][m];
  9.    
  10.     for(int i = 0; i < n; i++) {
  11.         for(int j = 0; j < m; j++) {
  12.             scanf("%d", &mat[i][j]);
  13.         }
  14.     }
  15.    
  16.     for(int i = 0; i < n; i++) {
  17.         for(int j = 0; j < m; j++) {
  18.             printf("%d ", mat[i][j]);
  19.         }
  20.         printf("\n");
  21.     }
  22.     return 0;
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement