View Code of Problem 55

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

int main(void)
{
  char str[100],c;
  int i,l;

  gets(str);
   l=strlen(str);
 c=getchar();
  for(i=0;i<l;i++)
  {
      if (str[i]!=c)
        printf("%c",str[i]);
  }
  printf("\n");
}

Double click to view unformatted code.


Back to problem 55