Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- char c, s[60][60]={0};
- int i, j;
- for(i=0 ; i<60 ; i)
- {
- for(j=0 ; j<60 ; j++)
- {
- scanf("%c",&c);
- if(c==' ')
- {
- i++;
- break;
- }
- else if(c=='\n')
- break;
- else
- s[i][j]=c;
- }
- if(c=='\n')
- break;
- }
- for( ; i>=0 ; i--)
- {
- for(j=0; s[i][j]!=0 ; j++)
- printf("%c",s[i][j]);
- printf(" ");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement