Sign in Join
Wiki copytemporary

Basic Pascal Tutorial/Chapter 3/Programming Assignment/zh CN: what changed

Revision 2 to 3. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
113E - 编程作业 (原作者: Tao Yue, 状态: 未更改)
22
33**问题 1**
44
55在[斐波那契数列](http://zh.wikipedia.org/zh-cn/%E6%96%90%E6%B3%A2%E9%82%A3%E5%A5%91%E6%95%B0%E5%88%97)中,输出前10个,从这2个数开始:
66
7-```
7+```text
881 1
99```
1010
1111数列由0和1开始,每一项都等于前两项之和。1 + 1 = 2,1 + 2 = 3,2 + 3 = 5,这就形成了以下数列:
1212
13-```
13+```text
14141 1 2 3 5 8 13 21 34 55 89 144 ...
1515```
1616
1717**问题 2**
1818
1919显示所有小于20000的平方。数字间用逗号分隔,每行显示5个;显示效果如下:
2020
21-```
21+```text
2222 1, 2, 4, 8, 16,
232332, 64, 128, 256, 512,
24241024, 2048, 4096, 8192, 16384
2525```
2626
2727| | | |
2828|----|----|----|
2929| [[Basic Pascal Tutorial/Chapter 3/FOR..IN/zh CN|上一页]] | [[Basic Pascal Tutorial/Contents/zh CN|目录]] | [[Basic Pascal Tutorial/Chapter 3/Solution/zh CN|下一页]] |
3030
3131---
3232*From the Free Pascal wiki, page "Basic Pascal Tutorial/Chapter 3/Programming Assignment/zh CN", as it stood on 2022-08-20 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
3333Category: zh

Back to history