Python Saved Program: gifted-life

facebook share

Here's the online compiler accompanied with IDE at your service. This is a saved code by one of our users. Try it out or save your own from the IDE page and don't forget to leave a feedback. You can find that at the bottom of the page.


n=input("enter the number:")
t=0
a=0
b=1

while(n!=0):
    t=a+b
    a=b
    b=t
    print(t)
Execute

Output

Press the execute button or CTRL + enter to run code.

Inputs