View Code of Problem 55

#include<stdio.h>
int main(){
char str1[100],str2[100],c;
  int i,j;
  gets(str1);
  scanf("%c",&c);
  for(i=0;str1[i]!='\0';i++){
    if(str1[i]!=c)
      str2[j]=str1[i];
      j++;
  }
  str2[j]='\0';
  return 0;
}

Double click to view unformatted code.


Back to problem 55