#include<stdio.h> #include<string.h> int main(){ int len,i; char str[100]; char c ; gets(str); scanf("%c",&c); i = 0; while(str[i]!='\0'){ if(str[i]!=c) printf("%c",str[i]); i++; } return 0 ; }
Double click to view unformatted code.