View Code of Problem 55

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

Double click to view unformatted code.


Back to problem 55