← Back to List

10872번: 팩토리얼 ↗

Solutions

C++14
115 B | 115 chars
#include <iostream>
using namespace std;
int N,F=1;
int main(){
	cin>>N;
	for(int x=1; x<=N; x++)F*=x;
	cout<<F;
}