Advertisement
Josif_tepe

Untitled

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