Pastebin

Paste #366:

< previous paste - next paste>

Pasted by tdn

Download View as text

def fac(x):
    if x == 0:
        return 1
    if x == 1:
        return 1
    return x * fac(x-1)
    
n = input("Skriv et tal: ")

print "Fakultet", n , "er", fac(n)

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.