View Code of Problem 55

#include<stdio.h>
#include<math.h>
void main()
{
	int i;
	char s[100],c;
	gets(s);
	c=getchar();
	for(i=0;i<strlen(s);i++)
	{
		if(s[i]==c)
			continue;
		else
			printf("%c",s[i]);
	}
	printf("\n");

}

Double click to view unformatted code.


Back to problem 55