zoukankan
html css js c++ java
.net递归实现:斐波那契数列
Code
1
protected
void
Page_Load(
object
sender, EventArgs e)
2
{
3
4
if
(
!
IsPostBack)
5
{
6
for
(
int
i
=
0
; i
<
8
; i
++
)
7
{
8
Response.Write(foo(i
+
1
));
9
Response.Write(
"
,
"
);
10
}
11
12
}
13
}
14
15
private
int
foo(
int
i)
16
{
17
if
(i
<
3
)
18
{
19
return
1
;
20
}
21
else
22
{
23
return
foo(i
-
1
)
+
foo(i
-
2
);
24
}
25
}
26
查看全文
相关阅读:
Oracle
Windows
Ajax
Ext JS
JavaScript
Linux中查看各文件夹大小命令du
本地文件上传到Linux服务器的几种方法
Mysql线程状态
把mysql里面的一些状态输出到文件里面显示
linux修改磁盘调度方法
原文地址:https://www.cnblogs.com/starm/p/1555072.html
最新文章
pycharm 远程修改服务器代码
linux下mysql数据的导出和导入
Mac OpenSSL 生成支付宝 2048位密钥
Homebrew 更新慢问题
Mac上django 报错 [Errno 13] Permission denied: '/static'
Ubuntu
iPhone
eclipse
Oracle
Oracle
热门文章
Oracle
Windows
Windows
Ext JS
Angular
Ext JS
Ext JS
Ext JS
Ext JS
JSON
Copyright © 2011-2022 走看看