fork download
  1. input = int(20)
  2. x=1
  3. y=2
  4. for i in range(input):
  5. if i%2==1:
  6. y=x+y
  7. print(x)
  8. else:
  9. x=x+y
  10. print(y)
  11. #0JrQsNGB0YzRj9C90LXQvdC60L4=
Success #stdin #stdout 0.12s 14156KB
stdin
Standard input is empty
stdout
2
3
5
8
13
21
34
55
89
144
233
377
610
987
1597
2584
4181
6765
10946
17711