Ex 4.3
Aller à la navigation
Aller à la recherche
Solutions de cet exercices :
- Solution de Cyril Dewez :
a,b,c,d=1," euro(s) = ",1.65," dollar(s)" while a<16384 : print(a,b,c,d) a,c=a*2,c*2
- Solution de Kévin Detaille :
a=1 print(a,"euro(s)",(a/(1/1.65)),"dollar(s)") while a<16384: a=a*2 print(a,"euro(s)=",(a/(1/1.65)),"dollar(s)")
- Solution de Gérard Swinnen :
s = 1 while s <= 16384: print(s, "euro(s) =", s *1.65, "dollar(s)") s = s *2