mhdew

Brain's Photos

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