View Code of Problem 55

#include<stdio.h>
#include<string.h>

int main(){
	int i,j=0;
	char a[100000],b[100000],c;
	gets(a); 
	scanf("%c",&c);
	getchar();
	for(i=0;a[i]!='\0';i++){
		if(a[i]!=c){
			b[j++]=a[i];
		}
	}
	puts(b);
		
}

Double click to view unformatted code.


Back to problem 55