C Program to print Fibonacci Sequence using recursion

The following is a C Program to print Fibonacci Sequence using recursion:

Expected Output:

How it works

The following figure shows how the evaluation of fibonacci(3) takes place:

Evaluation of fibonacci(3)


Recommended Reading:

Leave a Comment

%d bloggers like this: