#1883: you need to think before you click into this


1755166-8@g.puiching.edu.mo (陳子桓P5A16)

School : No School
ID : 3094
IP address : [192.168.120.33]
Last Login :
2025-04-16 18:27:44
a132. 階乘 | From: [192.168.120.33] | Post Date : 2025-03-27 13:28

if you cant think i will give you the ans but you need to think

 

 

 

 

 

 

 

 

 

 

so here is the ans

 

#include <bits/stdc++.h>

using namespace std;

int main(){

long long n;

int i;

cin>>n;

for (i=n-1;i>0;i--){

n*=i;

}

cout<<n;

return 0;

}

 
ZeroJudge Forum