Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sum = 0
- a,b,c = 1,2,0
- for i in range (100) :
- c = a+b
- a=b
- b=c
- if a%2==0 and a<1000000 :
- print (a,end =' ')
- sum = sum + a
- print("hasilnya:",sum)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement