Sollicitatievraag bij Microsoft

implement factorial method

Antwoord op sollicitatievraag

Anoniem

21 aug 2012

the simple answer would be : def factorial(a): if a == 0: return 1 else: return a * factorial(a-1)