Sign in Join
Wiki copytemporary

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

Revision 1 to 2. 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-`1 1`
7+```
8+1 1
9+```
810
911数列由0和1开始,每一项都等于前两项之和。1 + 1 = 2,1 + 2 = 3,2 + 3 = 5,这就形成了以下数列:
1012
11-`1 1 2 3 5 8 13 21 34 55 89 144 ...`
13+```
14+1 1 2 3 5 8 13 21 34 55 89 144 ...
15+```
1216
1317**问题 2**
1418
1519显示所有小于20000的平方。数字间用逗号分隔,每行显示5个;显示效果如下:
1620
17-`    1, 2, 4, 8, 16,`\
18-`32, 64, 128, 256, 512,`\
19-`1024, 2048, 4096, 8192, 16384`
21+```
22+ 1, 2, 4, 8, 16,
23+32, 64, 128, 256, 512,
24+1024, 2048, 4096, 8192, 16384
25+```
2026
2127| | | |
2228|----|----|----|
2329| [[Basic Pascal Tutorial/Chapter 3/FOR..IN/zh CN|上一页]] | [[Basic Pascal Tutorial/Contents/zh CN|目录]] | [[Basic Pascal Tutorial/Chapter 3/Solution/zh CN|下一页]] |
2430
2531---
2632*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).*
2733Category: zh

Back to history