Skip to content

Instantly share code, notes, and snippets.

@Prajwalprakash3722
Created September 25, 2022 18:10
Show Gist options
  • Select an option

  • Save Prajwalprakash3722/9f49eb73185b66900a26b5cc4a983e53 to your computer and use it in GitHub Desktop.

Select an option

Save Prajwalprakash3722/9f49eb73185b66900a26b5cc4a983e53 to your computer and use it in GitHub Desktop.
int fibbonacci(int n)
{
if(n == 0)
return 0;
else if(n == 1)
return 1;
else
return (fibbonacci(n-1) + fibbonacci(n-2));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment