View Code of Problem 55

#include <stdio.h>
#include <string.h>
int main()
{
	char a[100];
	char b[100];
	int i;
	int n;
	gets(a);
	char p;
	int j=0;
	scanf("%c",&p);
	n = strlen(a); 
	for(i=0;i<n;i++)
	{
		if(a[i]!=p)
		{
		    b[j] = a[i]; 
		    j++;
	}
	}
	
  puts(b);
	
	
	return 0; 
 } 

Double click to view unformatted code.


Back to problem 55