View Code of Problem 55

#include<iostream>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <cmath>
#include <algorithm>
using namespace std;
#pragma warning(disable:4996)


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

Double click to view unformatted code.


Back to problem 55