Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
(P3) Fibonacci 2
x = input() x = int(x) fibo = [1,1] i = 0 while x > fibo[i]: i += 1 y = fibo[i]+fibo[i-1] fibo.append(y) if x == fibo[i] and x > 1 and x < 1836311904: print(x,"=F(",i,")",sep='') elif x == 1: print(x,"=F(0)=F(1)",sep='') elif x > 1836311903: print(x,">F(45)",sep='') else: print("F(",i-1,")<",x,"<F(",i,")",sep='')
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
BUCLE FOR EN PYTHON 3
for project 1
Jaan
Minesweeper
3-6.격자판 최대합
shiva
StringManipulation
ok
Q1
if else
stackse - search stackoverflow differently
Please log in to post a comment.