Question: Write a function, reverse Digit that takes an integer as a parameter and returns the number with its digits reversed. For example, the value of

Write a function, reverse Digit that takes an integer as a parameter and returns the number with its digits reversed. For example, the value of reverse Digit(12345) is 54321; the value of reverse Digit(5600) is 65; the value of reverse Digit(7008) is 8007; and the value of reverse Digit(-532) is -235.

Step by Step Solution

3.49 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

include using namespace ... View full answer

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 Accounting Questions!