#P1715. 自定义函数.求阶乘3.填空题
自定义函数.求阶乘3.填空题
题目描述
一个正整数 ,输出 的阶乘。
输入格式
一个正整数 ()
输出格式
一个整数,为 的阶乘。
样例
4
24
程序填空
#include<bits/stdc++.h>
using namespace std;
__填空(1)__ fac(__填空(2)__)
{
if(n==0)
return 1ll;
else
return n*__填空(3)__;
}
int main()
{
int n;
cin>>n;
cout<<__填空(4)__;
return 0;
}
填空(1):{{ input(1) }}
填空(2):{{ input(2) }}
填空(3):{{ input(3) }}
填空(4):{{ input(4) }}