Skip to content

Instantly share code, notes, and snippets.

@rashedcs
Created December 23, 2016 17:27
Show Gist options
  • Save rashedcs/cb05e4784dc165107ace17e0bb399b4b to your computer and use it in GitHub Desktop.
Save rashedcs/cb05e4784dc165107ace17e0bb399b4b to your computer and use it in GitHub Desktop.
int fibo(int n)
{
if(n<=2) return 1;
else return fibo(n-2) + fibo(n-1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment