Guest User

Untitled

a guest
Jan 16th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3. int main()
  4. {
  5. char inarray[50][50];
  6. char word[2500];
  7. int i;
  8. memset(inarray,' ',sizeof(inarray));
  9.  
  10. while(fgets(word,sizeof(word),stdin)!=NULL)
  11. {
  12. for(i = 0; i < 50; i++)
  13. {
  14. inarray[0][i] = getchar();
  15. if(inarray[0][i] == '\n')
  16. break;
  17. getchar();
  18. }
  19. for(x = 1; x < i ; x++)
  20. {
  21. for(y = 1; y < i; x++)
  22. {
  23. inarray[x][y] = getchar();
  24. getchar();
  25. }
  26. }
  27. }
  28. return(0);
  29. }
Add Comment
Please, Sign In to add comment