#include<stdio.h> #include<string.h> int main() { char s[100]; gets(s); char w; scanf("%c",&w); for(int i=0;i<strlen(s);i++) { if(s[i]==w)continue; else printf("%c",s[i]); } }
Double click to view unformatted code.