Absolute beginner-21-print the odd and even digits of the number separately.
Created 2 years ago
135
Views
2
Comments
Ques:Write a code get an integer number as input and print the odd and even digits of the number separately.
Input Description:
A single line containing an integer.
Output Description:
Print the even and odd integers of the integer in a separate line.
Sample Input :
1234
Sample Output :
2 4
1 3
MY OUTPUT:
is there any other way / approach to this ques ??? , I got the expected output but in a list. Please let me know your approach to this question. Thank you in advance !