Write a function that takes an integer value and returns the number with its dig
ID: 3629860 • Letter: W
Question
Write a function that takes an integer value and returns the number with its digits reversed. For example, given the number 7631, the function should return 1367.
see the template
1. How would you rewrite reverseDigits to take its arguments pass-by-reference. It should no longer return a value; it should just modify the number it is passed.
2. How would you extend the function to work for inputs of size 5 (i.e 1 to 99999)? How about 3?