Fibonacci and HCF (Recursion)
Learn about recursion and try to find the HCF by implementing the Euclidean algorithm.
Introduction to recursion
We want to explore the idea behind recursion by looking at a program that uses recursion for finding the
fib(1) = 1fib(2) = 1fib(n) = fib(n-1) + fib(n-2)
Formula of N-th Fibonacci number
If we are asked the question: “what is the