acobzew

exam1

Jun 14th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4.  
  5. int main()
  6. {
  7.   char c = getchar(), s[100];
  8.   int i;
  9.   scanf("%s", s);
  10.   for (i = 0; i < strlen(s); i++)
  11.     if (s[i] != c)
  12.       putchar(s[i]);
  13.   return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment