会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
airduce
对科学与知识保持敬畏之心,路漫漫其修远,不急不躁!
博客园
首页
新随笔
联系
订阅
管理
2018年4月1日
c语言用递归求:10的阶乘、100+99+98...+3+2+1的值。
摘要: #include #include void main(){ int myfun(int in); int a =myfun(10); printf("%d\n", a); } int myfun(int in){ if (in > 1) //将下面的*换成+,就可以求100+99+98...+3+2+1的值呢。 retur...
阅读全文
posted @ 2018-04-01 11:52 一梦、
阅读(2180)
评论(0)
推荐(0)
公告