输入一个整数 ,请你编写一个函数 int fact(int n),并输出 的阶乘。
int fact(int n)
共一行,一个整数 。
共一行,包含一个整数表示 的阶乘的值。
复制3
3
复制6
6