View Code of Problem 55

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

Double click to view unformatted code.


Back to problem 55