print("inserire il numero di cifre della successionedi fibonacci")
n = int (input())
c=0
p1=0
p2=1
print(p1)
print(p2)
while c<n:
    s=p1+p2
    p1=p2
    p2=s
    print(s)
    c=c+1

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: