博客
关于我
计算1!+2!+3!+4!+5!+6!+......+20!
阅读量:613 次
发布时间:2019-03-13

本文共 390 字,大约阅读时间需要 1 分钟。

	C??????	
#define _CRT_SECURE_NO_WARNINGS#include 
int main() { int n; scanf("%d", &n); unsigned long long i, m = 1; unsigned long long s = 0; for (i = 1; i <= 20; i++) { m *= i; s += m; } printf("%lld\n", s); return 0;}

??????????????????

  • ???????<div>??
  • ???????????
  • ?????????
  • ?????????
  • ?????????
  • ?????????????????
  • ???????<pre>??
  • ???????????????????????????

    转载地址:http://xlzaz.baihongyu.com/

    你可能感兴趣的文章
    python中 urllib, urllib2, httplib, httplib2 几个库的区别
    查看>>
    python中 yaml库 & json库 & xmltodict库使用
    查看>>
    python中 将你的名字转化成为二进制并输出
    查看>>
    Python中*args 和**kwargs的用法
    查看>>
    Python中*args 和**kwargs的用法
    查看>>
    Python中*args和**kwargs的使用
    查看>>
    python中0、1、True、False、if条件
    查看>>
    python中argparse模块关于 parse_args() 函数详解(全)
    查看>>
    python中base64编码与解码
    查看>>
    python中break怎么用_详解Python中break语句的用法
    查看>>
    python中del函数的垃圾回收
    查看>>
    Python中DrissionPage的详细解析与实战
    查看>>
    python中enumerate、变量类型转换
    查看>>
    python中execute是啥_python – 为什么“c.execute(…)”打破循环?
    查看>>
    python中exit和break区别_Python中exit()和sys.exit()之间的区别
    查看>>
    python中h5的用法
    查看>>
    python中http协议编程_HTTP编程
    查看>>
    python中import os_Python:相对导入与绝对导入(import)、os.path、__file__
    查看>>
    python中is和==操作符
    查看>>
    Python中range对象的使用以及打印九九乘法表
    查看>>