write recursive function to return reverse of given number
Answers
Answered by
31
Logic to find reverse of number using recursion
Multiply reverse variable by 10.
Find the last digit of the given number.
Add last digit just found to reverse .
Divide the original number by 10 to remove last digit, which is not needed anymore.
Similar questions