Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Using fractions to approximate the Golden Ratio
- a = 1
- b = 1
- while b < 1000000000000000:
- g = a + b
- h = g / a
- print (round(h, 20))
- b = a
- a = g
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement