Write a function, reverse Digit that takes an integer as a parameter and returns the number with
Fantastic news! We've Found the answer you've been seeking!
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 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.
Related Book For
Data Structures and Algorithms in Java
ISBN: 978-1118771334
6th edition
Authors: Michael T. Goodrich, Roberto Tamassia, Michael H. Goldwasser
Posted Date: