View Code of Problem 55

#include <stdio.h>
#include <string.h>
int main(){
	char a[100];
	char x;
	int i,n;
	gets(a);
	n=strlen(a);
	scanf("%c",&x);
	for(i=0;i<n;i++){
		if(a[i]!=x){
			putchar(a[i]);
		}
	}
}

Double click to view unformatted code.


Back to problem 55