View Code of Problem 55

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

int main(){
	int i;
	char str1[100],str2;
	gets(str1);
	scanf("%c",&str2);
	for(i=0;i<strlen(str1);i++)
		if(str1[i] != str2)
			printf("%c",str1[i]);
		
	
    return 0;
}

Double click to view unformatted code.


Back to problem 55