print(1) a = 0 b = 1 while True: c = a + b if c > 100: break a = b b = c print(c)
a = 1 b = 1 index = 2 while True: c = a + b index += 1 if index == 101: break a = b b = c print(c)
Last updated 6 years ago
Was this helpful?