# POO EXERCICE SPYRALE-01
# genre
#   Rayon : 1 mmm
#   Si le cinquantième [3,51](20 365 011 074)
#   si le trentième [3,31](1 346 269)
#   si le quarantième [3,41] (165 580 141)
#   Distance  : 384 800 km 384 000 000 000 mm
import math
rayonprecedent=2
rayonencoreavant=1
quotient=2
for i in range (3,31):
    rayon=rayonprecedent+rayonencoreavant
    quotient=rayon/rayonprecedent
    print ("Quotient :", quotient)
    rayonencoreavant=rayonprecedent
    rayonprecedent=rayon

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: