View Code of Problem 55

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

Double click to view unformatted code.


Back to problem 55