feat(solution): problem #25
parent
f3af320c66
commit
f24722d42b
|
|
@ -0,0 +1,14 @@
|
|||
previous = 0
|
||||
current = 1
|
||||
upcoming = 1
|
||||
index = 1
|
||||
|
||||
while(True):
|
||||
if len(str(current)) >= 1000:
|
||||
break;
|
||||
upcoming = previous + current
|
||||
previous = current
|
||||
current = upcoming
|
||||
index += 1
|
||||
|
||||
print("index", index)
|
||||
Loading…
Reference in New Issue