Menu
Coddy logo textTech

String Conversion

Lesson 10 of 25 in Coddy's Coding Problems: Volume 2 course.

Given a string, you need to output only the alphabetical characters, and ignore the numbers, symbols, and signs.
You can use the the C++ isalpha() function

challenge icon

Challenge

Easy

Write a program that reads a string from standard input and outputs only the alphanumeric characters from the string on output

Input
He-ll0,W0rl#d!

Output
HellWrld

Try it yourself

#include <stdio.h>

int main() {
    // Write code here
    return 0;
}

All lessons in Coding Problems: Volume 2