题解 | #n的阶乘#
n的阶乘
https://www.nowcoder.com/practice/97be22ee50b14cccad2787998ca628c8
#include <cstdio> long long FuncUser(int n){ if (n == 1){ return 1; } else{ return FuncUser(n - 1) * n; } } int main(){ int n; scanf("%d",&n); printf("%lld",FuncUser(n)); }