Category Archives: Recursion

Fibonacci in C with Recursion

code from 1:

Code from 0:

 

Youtube source:

Tower of Hanoi Recursion

code:

output:

Pseudocode:

Formula: 2^n-1

https://en.wikipedia.org/wiki/Tower_of_Hanoi

 

Recursion in C

code:

Another code:
it’s not tail recursion

//printing from stack