Write a python program that accepts a positive integer number from user input and makes and prints
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a python program that accepts a positive integer number from user input and makes and prints a new number that has only odd digits of the given number with preserving the order. If the given number has no odd digits, the new number is 0. Your program must check if the input is valid or not. Your program should only include contents from decision structures, boolean logic and repetition structures. Your program should also not include any string modifications or exceptions or functions. The following table shows examples of input and output.
Your input:24503
Your output:53
Your input:190673
Your output:1973
Related Book For
Posted Date: