mirror of
https://github.com/lucaspalomodevelop/cpp_stuff.git
synced 2026-03-12 22:47:22 +00:00
7 lines
82 B
Plaintext
7 lines
82 B
Plaintext
#include<iostream>
|
|
|
|
int fib(int n)
|
|
{
|
|
return n < 2 ? 1 : fib(n-2)+ fib(n-1);
|
|
}
|