The question is: Write a function that takes an integer value and returns the nu
ID: 3620518 • Letter: T
Question
The question is: 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.Modifications:
-prompt the user for an integer between 1 and 10,000 inclusive (from main())
-pass the input value to a function that returns the number with the digits reversed (a call from main() calls your function and passes the value input by the user)
-display the result from main(). Leading zeros can be eliminated. For example, if 2020 is input, the reverse is 0202 but the program may display 202.
(I'm using PuTTy... nano)