Skip to main content

QWERTY mnbvcxz's definitions

Recursion

In programming, the calling of a function within the function itself.
Here’s an example of a function that utilizes recursion:

def multiply(a, b):

#takes two integers and multiplies them

if b == 0:

return 0

else:

return a + multiply(a, b-1)
by QWERTY mnbvcxz February 14, 2019
mugGet the Recursionmug.

Share this definition

Sign in to vote

We'll email you a link to sign in instantly.

Or

Check your email

We sent a link to

Open your email