mise en place des cours algo + poo

This commit is contained in:
gwen
2017-08-28 17:36:36 +02:00
parent 2843f25795
commit dc02e78fff
114 changed files with 26589 additions and 0 deletions

View File

@ -0,0 +1,12 @@
def factorielle(n):
if (n > 1):
r = n*factorielle(n-1)
else:
r = 1
return r
def print_fact(n):
print "factorielle {} = {}\n".format(5, factorielle(5))
if __name__ == '__main__':
print_fact(5)