Question: Q5: Write a function to split a number into two numbers: first contain only even digits, second contains only odd digits. Ex: input number 234566

 Q5: Write a function to split a number into two numbers:

Q5: Write a function to split a number into two numbers: first contain only even digits, second contains only odd digits. Ex: input number "234566" output: num1=2466, num2=35

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!