Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- int main()
- {
- char c = getchar(), s[100];
- int i;
- scanf("%s", s);
- for (i = 0; i < strlen(s); i++)
- if (s[i] != c)
- putchar(s[i]);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment