Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main()
- {
- char inarray[50][50];
- char word[2500];
- memset(inarray,' ',sizeof(inarray));
- while(fgets(word,sizeof(word),stdin)!=NULL)
- {
- for(i = 0; i < 50; i++)
- {
- inarray[0][i] = getchar();
- if(inarray[0][i] == '\n')
- break;
- getchar();
- }
- for(x = 1; x < i ; x++)
- {
- for(y = 1; y < i; x++)
- {
- inarray[x][y] = getchar();
- getchar();
- }
- }
- }
- return(0);
- }
Add Comment
Please, Sign In to add comment