N的阶乘
来源:互联网 发布:js初始化二维数组 编辑:程序博客网 时间:2024/05/16 18:57
#include<iostream>
using namespace std;
int fun(int n);
int main ()
{
int a,i;
cin>>i;
a=fun(i);
cout<<a;
}
int fun(int n)
{
if(n>=1)
{
return n*(n-2);
}
else
return 0;
}
using namespace std;
int fun(int n);
int main ()
{
int a,i;
cin>>i;
a=fun(i);
cout<<a;
}
int fun(int n)
{
if(n>=1)
{
return n*(n-2);
}
else
return 0;
}
0 0
- N的阶乘--N!
- 大数阶乘-N的阶乘
- n(n<100)的阶乘
- 高精度N的阶乘-N!
- 计算N的阶乘
- 计算N的阶乘
- 求n的阶乘
- 递归n的阶乘
- n的阶乘
- 1489 N的阶乘
- 递归 n的阶乘
- N的阶乘
- n的阶乘
- 计算n的阶乘
- 大数n的阶乘
- N的阶乘
- 大数n的阶乘
- 大数n的阶乘
- Linux_ select 多路复用
- 程序分析(3)
- Visual C++(MFC)实现C/S
- 默认移动构造函数
- jQuery使用笔记
- N的阶乘
- C++ 大数模板
- 【HDU】 1014 Uniform Generator
- join 、left join 的区别
- 安装配置mysql5.7非安装zip压缩包(参考官方文档最简单流程)
- android Unable toexecute dex: method ID not in [0, 0xffff]: 65536问题
- leetcode 34. Search for a Range
- FIB
- 作业1