View Code of Problem 55

//
//  main.c
//  a
//
//  Created by rex on 16/9/14.
//  Copyright © 2016年 rex. All rights reserved.
//

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

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

Double click to view unformatted code.


Back to problem 55