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

Remove Digits

DEMO-C-32 โ€ข Programming in C

Browser-only practice

Problem Statement

Write a program that takes a string and returns a new string with all numeric digits removed.

Constraints

Max string length: 100

Input Format

Input:

String S

Output Format

Output:

Cleaned S

Sample Testcases

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

Sample #1
Public sample
Database#4
Database#
Removing digits from Database#4 results in Database#.
Sample #2
Public sample
Elderberry!2
Elderberry!
Removing digits from Elderberry!2 results in Elderberry!.
Sample #3
Public sample
Function!5
Function!
Removing digits from Function!5 results in Function!.
Sample #4
Public sample
Component.5
Component.
Removing digits from Component.5 results in Component..

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