Skip to content

Instantly share code, notes, and snippets.

@stu9458
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save stu9458/444af59c95ff4277a56f to your computer and use it in GitHub Desktop.

Select an option

Save stu9458/444af59c95ff4277a56f to your computer and use it in GitHub Desktop.
Just a test-file
#include<stdio.h>
int Fib(int x);
int Fib(int x)
{
if(x==0)return 0;
if(x==1)return 1;
return fib(x-1)+fib(x-2);
}
int main(void)
{
int num=10;
printf("The fib-num is %d \n",fib(num));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment