RIYAD3403

Untitled

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