mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-05-10 16:20:27 +08:00
15 lines
157 B
C++
15 lines
157 B
C++
#include <iostream>
|
|
using namespace std;
|
|
int main(){
|
|
int a;
|
|
int sum;
|
|
cin >>a;
|
|
for(sum=1;a>0;a--){
|
|
sum*=a;
|
|
}
|
|
cout <<sum;
|
|
return 0;
|
|
}
|
|
|
|
|