diff --git a/Day-19/indhu.py b/Day-19/indhu.py new file mode 100644 index 0000000..a4cde3f --- /dev/null +++ b/Day-19/indhu.py @@ -0,0 +1,9 @@ +def print_fibonacci(n, a=0, b=1): + if a > n: + return + print(a, end=" ") + print_fibonacci(n, b, a + b) + +n = 100 +print(f"Fibonacci numbers up to {n}:") +print_fibonacci(n)