mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-28 07:21:07 +00:00
Merge pull request #439 from timgiroux/master
fixed some spelling and added a different print message
This commit is contained in:
commit
c213e1553d
|
@ -6,11 +6,11 @@ def recur_fibo(n):
|
||||||
else:
|
else:
|
||||||
return(recur_fibo(n-1) + recur_fibo(n-2))
|
return(recur_fibo(n-1) + recur_fibo(n-2))
|
||||||
|
|
||||||
limit = int(input("How many terms to include in fionacci series:"))
|
limit = int(input("How many terms to include in fibonacci series: "))
|
||||||
|
|
||||||
if limit <= 0:
|
if limit <= 0:
|
||||||
print("Plese enter a positive integer")
|
print("Please enter a positive integer: ")
|
||||||
else:
|
else:
|
||||||
print("Fibonacci series:")
|
print(f"The first {limit} terms of the fibonacci series are as follows")
|
||||||
for i in range(limit):
|
for i in range(limit):
|
||||||
print(recur_fibo(i))
|
print(recur_fibo(i))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user