View Code of Problem 55

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

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

Double click to view unformatted code.


Back to problem 55