forked from newde/homework
镇乃天子
镇乃天子
This commit is contained in:
16
666/02.2.2.cpp
Normal file
16
666/02.2.2.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user