Guest User

hw.4 30/1/2018

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