View Code of Problem 55

#include <stdio.h>
#include <string.h>
void main(){
	char str[100];
	char c;
	int i,l;
	gets(str);
	scanf("%c",&c);
	l=strlen(str);
	for(i=0;i<l;i++){
		if(str[i]==c)
			printf("");
		else
			printf("%c",str[i]);
	}
}

Double click to view unformatted code.


Back to problem 55