Advertisement
letisia

Jawaban Nomor 4

Mar 30th, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. a = 0
  2. b = 1
  3. suku = 1
  4. sum = 0
  5. while (suku < 1000000) :
  6. if suku % 2 == 0 :
  7. sum += suku
  8. a=b
  9. b=suku
  10. suku = a+b
  11. print(sum)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement