#include <stdio.h>

/* 题目如下
* S = 1 + 2! + 3! + ... + N!
*/
int main(int argc, char *argv[])
{
int s = ;
int n = ;
int i = ;
int m = ; printf("Please input N :");
if (scanf("%d",&n) == ){
while (i <= n ){
m *= i++;
s += m;
}
printf("The result is %d \n", s); }
else
printf("Input Error.\n"); return ;
}

最新文章

  1. jgGrid中的editrules使用函数来进行验证
  2. Python mysql 操作小类,供大家用用
  3. 控制反转容器&amp; 依赖注入模式 ---读感。
  4. 使用Hue上传hive数据
  5. CSS之边框覆盖
  6. 【转】Hbase shell 常用命令
  7. xiaocms 关于搜索功能 添加搜索字段
  8. 部分视图调用方法总结(Action 、 RenderAction 、 Partial 、 RenderPartial)
  9. 迭代 Iterate
  10. Java 泛型具体解释
  11. 对redux的理解
  12. JavaScript练习2
  13. .net 4种单例模式
  14. 前端笔记之服务器&amp;Ajax(下)数据请求&amp;解决跨域&amp;三级联动&amp;session&amp;堆栈
  15. DSAPI多功能组件编程应用-文件类
  16. angular2的ElementRef在组件中获取不到
  17. 利用百度API(js),怎样通过地址获取经纬度
  18. python 大数据处理小结
  19. underscore.js源码研究(8)
  20. OSX10.12搭建IPv6本地环境测试APP

热门文章

  1. Python流程控制
  2. [ios]scrollView实现移动与缩放
  3. 微软职位内部推荐-Senior SDE for Win Shell Exp
  4. .net如何调试dll
  5. Careercup - Facebook面试题 - 6139456847347712
  6. java集合类(六)About Queue
  7. 中国餐馆过程(CRP)
  8. Matlab中sort函数的使用
  9. C#动态多线程实例
  10. Unity GameObject.activeSelf, GameObject.activeInHierarchy,GameObject.SetActive和SetActiveRecursively