Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 13 / task2.cpp
blob: 39f69addd68a81c958bbd8ec74b5b82aeb706f1d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>
using namespace std;

unsigned fibb(unsigned n)
{
	if (n == 0 || n == 1)
		return 1;
	return fibb(n - 1) + fibb(n - 2);
}

int main()
{
	cout << fibb(5);
}