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:

c:

/C code by Agent FALCON

Leave a Reply

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

More posts. You may also be interested in.