View Code of Problem 55

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

Double click to view unformatted code.


Back to problem 55