Question d’entretien chez Microsoft

implement factorial method

Réponse à la question d'entretien

Utilisateur anonyme

21 août 2012

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