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],