Alphabets & Digits

The program must accept a string S containing alphabets and digits as the input. The program must print all the alphabets in S. Then the program must print all the digits in S as the output.

Example Input/Output
Input:
Pass123Lock456

Output:
PassLock123456

Explanation:
All the alphabets in the string Pass123Lock456 are printed.
Then all the digits in the string Pass123Lock456 are printed.

Here are the various methods

Python:

Capture3 2

c:

IMG 20200425 WA0015 1
/C code by Agent FALCON
Previous Article

Sum of ASCII Values

Next Article

Positions of Smallest and Largest

Write a Comment

Leave a Comment

Your email address will not be published. Required fields are marked *