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