View Code of Problem 55

#include<stdio.h>
#include<string.h>
int main()
{
	char str[1000];
	char strr[1000];
	char c;
	gets(str);
	scanf("%c",&c);
	int i=0,j=0;
	while(str[i]!='\0')
	{
		if(str[i]!=c)
		{
			strr[j]=str[i];
			j++;
		}
		i++;
	}
	puts(strr);
	return 0;
}

Double click to view unformatted code.


Back to problem 55