Commit 24e5bdffc6d50af212efcb0a9238a45e569cd834

Authored by Mestari Yousra
0 parents

Fonction factorielle

Showing 1 changed file with 6 additions and 0 deletions   Show diff stats
test1 0 → 100644
  1 +++ a/test1
... ... @@ -0,0 +1,6 @@
  1 +def facto(n):
  2 + if n==0:
  3 + return 1
  4 + if n==1:
  5 + return 1
  6 + return n*facto(n-1)
0 7 \ No newline at end of file
... ...