Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- char str[100];
- int main()
- {
- int i=0;
- gets(str);
- for (i=0;i<100;i++) {
- if (str[i]==' ' and str[i]==str[i-1]) {
- printf("");
- }
- else {
- putchar(str[i]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement