View Code of Problem 55

#include "stdio.h"
#include "math.h"
#include "string.h"

void main()
{
	int i,j,k;
	char s[100];
	char c;
	gets(s);
//	fflush(stdin);
	scanf("%c",&c);
	for(i=0;s[i]!='\0';i++)
	{
		if(s[i]!=c)
			printf("%c",s[i]);
	}
}

Double click to view unformatted code.


Back to problem 55