Difference between revisions of "Basic Pascal Tutorial/Chapter 3/Programming Assignment/zh CN"

From Free Pascal wiki
Jump to navigationJump to search
m (bypass language bar/categorization template redirect [cf. discussion])
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Programming Assignment 3}}
+
{{Basic Pascal Tutorial/Chapter 3/Programming Assignment}}
  
 
3E - 编程作业 (原作者: Tao Yue, 状态: 未更改)
 
3E - 编程作业 (原作者: Tao Yue, 状态: 未更改)
Line 23: Line 23:
  
 
{|style=color-backgroud="white" cellspacing="20"
 
{|style=color-backgroud="white" cellspacing="20"
|[[FOR..IN/zh_CN|上一页]]
+
|[[Basic Pascal Tutorial/Chapter 3/FOR..IN/zh_CN|上一页]]
|[[Contents/zh_CN|目录]]
+
|[[Basic Pascal Tutorial/Contents/zh CN|目录]]
|[[Solution_3/zh_CN|下一页]]
+
|[[Basic Pascal Tutorial/Chapter 3/Solution/zh_CN|下一页]]
 
|}
 
|}
  
  
 
[[Category:zh]]
 
[[Category:zh]]

Latest revision as of 15:19, 20 August 2022

български (bg) English (en) français (fr) 日本語 (ja) 中文(中国大陆)‎ (zh_CN)

3E - 编程作业 (原作者: Tao Yue, 状态: 未更改)

问题 1

斐波那契数列中,输出前10个,从这2个数开始:

1 1


数列由0和1开始,每一项都等于前两项之和。1 + 1 = 2,1 + 2 = 3,2 + 3 = 5,这就形成了以下数列:

1 1 2 3 5 8 13 21 34 55 89 144 ...

问题 2

显示所有小于20000的平方。数字间用逗号分隔,每行显示5个;显示效果如下:

    1, 2, 4, 8, 16,
32, 64, 128, 256, 512,
1024, 2048, 4096, 8192, 16384
上一页 目录 下一页