Skip to content

Instantly share code, notes, and snippets.

@jesuyedavid
Created April 19, 2018 13:58
Show Gist options
  • Save jesuyedavid/627a50070f57a29e6f7c70736186f48b to your computer and use it in GitHub Desktop.
Save jesuyedavid/627a50070f57a29e6f7c70736186f48b to your computer and use it in GitHub Desktop.
Reverse print a digit using recursion
def recRev(x, y):
if(x>0):
y+=x%10
return (recRev(x/10, y*10))
else:
return (y/10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment