Blame view

P12509_en/S001-AC.cc 208 Bytes
Imanol-Mikel Barba Sabariego authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <iostream>

using namespace std;

int factorial(int n)
{
	if(n < 2)
	{
		return 1;
	}
	return (n)*factorial(n-1);
}

int main()
{
/*
	int a;
	cin >> a;
	cout << factorial(a) << endl;
	return 0;
*/
}