From an alphanumeric string, how can we separate numbers and alphabets and print them individually? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

From an alphanumeric string, how can we separate numbers and alphabets and print them individually?

Use C++

23rd Oct 2020, 1:33 PM
Akshat
Akshat - avatar
2 Respostas
+ 3
Hint: Use a loop and check isdigit(char), and separate them.
23rd Oct 2020, 1:46 PM
777
777 - avatar
0
This will help you . https://stackoverflow.com/questions/26502432/how-can-i-separate-numbers-and-letters-in-a-c-string You can see code how to seprate numbers and chars
23rd Oct 2020, 1:41 PM
A S Raghuvanshi
A S Raghuvanshi - avatar