Add new file

main
Ferexio 2022-11-23 20:52:19 +00:00
parent f3f5b8599c
commit 152a64eee7
1 changed files with 16 additions and 0 deletions

16
fibonacci.py Normal file
View File

@ -0,0 +1,16 @@
def fibonacci(n):
a = 0
b = 1
for i in range(0, n):
b = b + a
a = b - a
return a
def main():
n = int(input("Write value greater than 0: "))
print(fibonacci(n))
if __name__ == "__main__":
main()