Skip to content

Commit

Permalink
Create joe_g.py
Browse files Browse the repository at this point in the history
  • Loading branch information
joegeorge022 authored Dec 18, 2024
1 parent 61b1e6d commit 0c456e9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Day-19/joe_g.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
def fibonacci(n, a=0, b=1):
if a > n:
return
print(a, end=" ")
fibonacci(n, b, a + b)


print(fibonacci(25))

0 comments on commit 0c456e9

Please sign in to comment.