Advertisement
_Nishat_tasnim

string!

Mar 30th, 2021
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<string.h>
  3.  
  4. int main()
  5. {
  6. char st[50000];
  7. scanf("%[^\n]",st);
  8. int i,n;
  9. n=strlen(st);
  10. for(i=0; i<=n; i++)
  11. {
  12. if(st[i]==' '||st[i]=='-'||st[i]=='_'||st[i]==','||st[i]=='.'||st[i]=='$')
  13. {
  14. printf("\n");
  15. }
  16. else
  17. printf("%c",st[i]);
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement