jackfrued / Python-100-Days

Python - 100天从新手到大师

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This IS good ???

DaniMayega09 opened this issue · comments

Algorithme factoriel
Variable
n: entier
Fonction fact(n: entier): entier
Début
si (n <= 1) alors
retourner 1
sinon
retourner n*fact(n - 1)
finsi
Fin

Début
écrire('Entrez un nombre: ')
lire(n)
écrire(n, '! = ', fact(n))
Fin