Quick actions

cmd+k|ctrl+k

Navigation

Languages

factorial

Snippet info

Language

Python

Visibility

public

Author

fotty

Created

2016-05-18T09:32:09Z

Updated

2016-05-18T09:42:50Z


def recy(x):
    if x == 0 or x == 1:
        return 1
    else:
        return x * recy(x-1) 

print(recy(3))
INFO