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