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