mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-30 06:50:39 +00:00
10 lines
154 B
C
10 lines
154 B
C
|
int Fibonacci(int n)
|
||
|
{
|
||
|
if ( n == 0 )
|
||
|
return 0;
|
||
|
else if ( n == 1 )
|
||
|
return 1;
|
||
|
else
|
||
|
return ( Fibonacci(n-1) + Fibonacci(n-2) );
|
||
|
}
|