mhdew

Class13_P01

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