Question: Write a recursive function in C++ called doubleOdd, which takes an integer parameter, prints this integer to the screen with all the odd digits in

Write a recursive function in C++ called doubleOdd, which takes an integer parameter, prints this integer to the screen with all the odd digits in this number doubled, as following Ex: integer parameter 12 -> prints 112 integer parameter 212 -> prints 2112 integer parameter 112 -> prints 11112 

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!