1
0
forked from newde/homework

镇乃天子

镇乃天子
This commit is contained in:
2026-03-28 05:34:35 -04:00
parent dbca0f836c
commit 17ac063f22
3 changed files with 34 additions and 0 deletions

16
666/02.2.2.cpp Normal file
View File

@@ -0,0 +1,16 @@
#include<iostream>
using namespace std;
int bjdx(int a){
int b=1;
for(int i=1;i<=a;i++)
b=b*i;
return b;
}
int main(){
int pdd;
cin>>pdd;
cout<<bjdx(pdd)<<endl;
return 0;
}