Sign in Join
Wiki copytemporary

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

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Basic Pascal Tutorial/Chapter 3/Programming Assignment/zh CN

OldNewLine
1+3E - 编程作业 (原作者: Tao Yue, 状态: 未更改)
2+
3+**问题 1**
4+
5+在[斐波那契数列](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个数开始:
6+
7+`1 1`
8+
9+数列由0和1开始,每一项都等于前两项之和。1 + 1 = 2,1 + 2 = 3,2 + 3 = 5,这就形成了以下数列:
10+
11+`1 1 2 3 5 8 13 21 34 55 89 144 ...`
12+
13+**问题 2**
14+
15+显示所有小于20000的平方。数字间用逗号分隔,每行显示5个;显示效果如下:
16+
17+`    1, 2, 4, 8, 16,`\
18+`32, 64, 128, 256, 512,`\
19+`1024, 2048, 4096, 8192, 16384`
20+
21+| | | |
22+|----|----|----|
23+| [[Basic Pascal Tutorial/Chapter 3/FOR..IN/zh CN|上一页]] | [[Basic Pascal Tutorial/Contents/zh CN|目录]] | [[Basic Pascal Tutorial/Chapter 3/Solution/zh CN|下一页]] |
24+
25+---
26+*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).*
27+Category: zh

Back to history