Files
School/Anul 1/Semestrul 1/Fundamentals of Programming/a1-912-Cujba-Daniel/p2.py
T
2024-08-31 12:07:21 +03:00

15 lines
276 B
Python

# Solve the problem from the second set here
def fibonacci(n):
f1=1
f2=1
while n>=f2:
aux=f2
f2+=f1
f1=aux
print(f2)
return f2
if __name__=="__main__":
n=int(input("Please enter an positive integer number: "))
fibonacci(n)