codinasion-archive / codinasion-monorepo

Community Monorepo
https://codinasion.org
MIT License
52 stars 170 forks source link

[Program]: Print reverse of a number by recursion #4200

Open harshraj8843 opened 1 year ago

harshraj8843 commented 1 year ago

Description

Write a program to print reverse of a number by recursion

Reverse of a number is the number obtained by reversing the digits of the original number. For example, reverse of 123 is 321. The recursive solution is to print the last digit of the number and then call the function recursively to print the remaining digits.

Input  : 123
Output : 321

Tracking Issues

Rohan-Kalgutkar commented 10 months ago

!assign

swapnilmukherjee commented 10 months ago

!assign