fact() demo
来源:互联网 发布:安卓开发php服务器端 编辑:程序博客网 时间:2024/06/03 11:34
#include <iostream>using namespace std;int fact(int n);void testFact();int main(){ testFact(); return 0;}int fact(int n) { int ret = 1; while (n) ret *= n--; return ret;}void testFact() { cout << "Enter an positive integer: "; int n; cin >> n; cout << "factorial of " << n << " == " << fact(n) << endl;}
0 0
- fact() demo
- The fact
- fact.c
- usaco fact
- UNEDI/FACT基础知识
- [EDI]UNEDI/FACT基础知识
- Dimension and Fact
- elasticsearch__5__java操作之fact
- puppet自定义fact
- 自定义Fact 路径问题
- lie or fact
- 函数的调用Fact()
- fact-dimesion 设计的灵活性
- Dimensional Modelling - Fact Table Grain
- Fact dimension and degenerate dimension
- Fact()的返回值类型
- A confusing fact about using statement
- New Yorker-Fact-Political Scene DOWNFALL
- Jenkins+Gradle实现自动化Android打包、输出APK到指定路径
- javascript运算符整理
- 云课堂作业第二章
- PE 8 Largest product in a series
- 英文文献检索技巧
- fact() demo
- Linux的内存管理机制
- 数值的整数次幂
- struts2源码分析笔记
- GUI编程之Frame继承
- Leetcode: find all duplicate
- 如何安全退出多个Activity
- 高精度的进制转换
- 杭电2058 The sum problem