jackfrued / Python-100-Days

Python - 100天从新手到大师
152.97k stars 51.74k forks source link

This IS good ??? #994

Open DaniMayega09 opened 8 months ago

DaniMayega09 commented 8 months ago

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