Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
162 B
0
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
	int a;
	int f = 1;
	cin >> a;
	
	for (int i = 1; i < a + 1; i++) {
		f *= i;
	}
	cout << f;
}