阶乘后面总共有多少个零
来源:互联网 发布:淘宝卖点优化 编辑:程序博客网 时间:2024/04/27 19:17
#include <iostream>
using namespace std;
int countzero(int st,int dt)
{
int count=0;
int i;
for (i=st;i<=dt;++i)
{
int temp=i;
while (temp%5==0)
{
++count;
temp/=5;
}
}
return count;
}
int main()
{
int n;
cout<<"请输入n"<<endl;
cin>>n;
cout<<countzero(1,n)<<endl;
system("PAUSE");
return 0;
}
- 阶乘后面总共有多少个零
- n!阶乘后面有多少个零
- 阶乘后面有多少个0!!!
- 阶乘后面有多少个0!!!
- N!及其后面有多少个零
- 100阶乘末尾有多少个零?
- 100阶乘末尾有多少个零
- 100的阶乘有多少个零
- 100阶乘末尾有多少个零
- 阶乘的尾部有多少个零?
- 汉字总共有多少个
- 求一个数的阶乘后面有多少个0
- 一个数的阶乘后面有多少个0
- 【计算n阶乘后面有多少个0】
- 100的阶乘末尾有多少个零?
- 100的阶乘末尾有多少个零?
- 100的阶乘末尾有多少个零
- 求N的阶乘N!末尾有多少个零
- 初学vb.net
- 逐渐挖掘Autoboxing/Auto-Unboxing
- 用 Hibernate 和 Spring 开发事务持久层
- 据说它是微软公司给Windows XP测试者使用的内部工具--虚拟光驱——VCDControltool
- ucos的移植
- 阶乘后面总共有多少个零
- 逐渐挖掘Varargs
- OGRE教程(一):SceneNode, Entity, SceneManager
- 跟陌生人说话QQ小技巧
- 昨天在校四号楼307室听了“软通动力”的讲座,8错!
- POC(SIP封装)分析
- 字母——数字密码
- Building the network
- 常用正则表达式实例