Factoriel en c
Fermé
bjr svp je veux un programme de c pour calculer le factoriel donnez moi l algorithme
Configuration: Windows XP Firefox 2.0.0.2
5 réponses
-
over
-
Un algorithme récursif ?
Factorielle(n) = Factorielle(n-1) * n
Factorielle(n-1) = Factorielle(n-2) * (n-1)
...
Factorielle(0) = 1
Il ne te reste plus qu'à implémenter ça très simplement. -
what are oven
-
envoyer moi un algorithme qui calcul la factorielle de n
-
google :
http://www.ann.jussieu.fr/courscpp/Sections/Sect05-G0.html