Question: In C++ write a function called digitRev() that reverses the positive digits in its argument. User input must be positive. For example if give 567

 In C++ write a function called digitRev() that reverses the positive

In C++ write a function called digitRev() that reverses the positive digits in its argument. User input must be positive. For example if give 567 it returns 765. Example case: Enter a positive integer: -21 Enter a positive integer: 56789 The number with reversed digits: 98765 Would you like to enter a new number? (y) y Enter a positive integer: 212121 The number with reversed digits: 121212 Would you like to enter a new number? (y) n Good bye

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!