2 Star 3 Fork 0

thor / unisim

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test9.c 473 Bytes
一键复制 编辑 原始数据 按行查看 历史
thor 提交于 2013-11-26 05:39 . qsort pass
// fabonacci seq
// qsort test
#ifndef X86
#include "stdlib.h"
#endif
#ifdef X86
#include <stdio.h>
void sys_putint(int i) {
printf("%d\n", i);
}
#endif
int fab(int n) {
if (n == 1 || n == 0)
return 1;
else return fab(n-2) + fab(n-1);
}
int main()
{
// sys_putint(fab(1));
sys_putint(fab(2));
sys_putint(fab(3));
sys_putint(fab(4));
sys_putint(fab(5));
sys_putint(fab(6));
sys_putint(fab(7));
sys_putint(fab(8));
sys_putint(fab(20));
}
C
1
https://gitee.com/thor/unisim.git
git@gitee.com:thor/unisim.git
thor
unisim
unisim
master

搜索帮助