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

unsigned power(unsigned n, unsigned k)
{
	if (k == 0)
		return 1;
	return n * power(n, k - 1);
}

int main()
{
	cout << power(2,7);
}