Skip to content

Instantly share code, notes, and snippets.

@Tsunamicom
Last active February 23, 2016 23:38
Show Gist options
  • Save Tsunamicom/6b57084e6431bc1c6c3e to your computer and use it in GitHub Desktop.
Save Tsunamicom/6b57084e6431bc1c6c3e to your computer and use it in GitHub Desktop.
Python Multiply Integers Recursive
def mult (a, b):
if b == 1: return a
elif b == 0: return 0
elif b < 0: return mult (-a, -b)
else: return a + mult (a, b-1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment