Previous Next
0 / 23
Module DEMO-32-108DEMO-C-32

Remove Char

DEMO-C-32 โ€ข Programming in C

Browser-only practice

Problem Statement

Write a program that removes all occurrences of a specified character from a given string.

Constraints

Max string length: 100

Input Format

Input:

C S

Output Format

Output:

Cleaned

Sample Testcases

Submit runs every public testcase in this browser. Results and code never leave this device.

Sample #1
Public sample
x unix
uni
Removing x from unix gives uni.
Sample #2
Public sample
l class
cass
Removing l from class gives cass.
Sample #3
Public sample
n angular
agular
Removing n from angular gives agular.
Sample #4
Public sample
o deadlock
deadlck
Removing o from deadlock gives deadlck.

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
Editor settings