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
include using namespace ... View full answer
Get step-by-step solutions from verified subject matter experts
