Posted by : Unknown Rabu, 27 November 2013


nich.....ane kasih scripnya...........

angka = input("masukkan limit deret fibonacci (angka) = ")
fibo = [0,1]
for a in range(angka):
    if a>1:
        print fibo[a-1] + fibo[a-2],
        fibo.append(fibo[a-1] + fibo[a-2])
    else:
        print fibo[a],


Leave a Reply

Subscribe to Posts | Subscribe to Comments

Welcome to My Blog

Popular Post

Blogger templates

Pages

Diberdayakan oleh Blogger.

Blogger news

Blogger templates

- Copyright © Python Programing -Robotic Notes- Powered by Blogger - Designed by Johanes Djogan -