Menu

[solved] – Question 79940

Write a function intreverse(n) that takes as input a positive integer n and returns the integer obtained by reversing the digits in n.

Here are some examples of how your function should work.

>>> intreverse(783)
387
>>> intreverse(242789)
987242
>>> intreverse(3)
3

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *