Ex 4.2
Aller à la navigation
Aller à la recherche
Solutions de cet exercices :
- Solution de Cyril Dewez :
a,b=1,1 while b<21: print (a) a,b=7*b,b+1
- Solution de Gérard Swinnen
c = 0 while c < 20: c = c +1 print(c, "x 7 =", c*7)
ou
c = 1 while c <= 20: print(c, "x 7 =", c*7) c = c +1