Sign in Join
Wiki copytemporary

Basic Pascal Tutorial/Chapter 3/Programming Assignment/ja: 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フィボナッチ数列の最初の10個の数を求めなさい。フィボナッチ数列は次の2個の数字からはじまる。
66
7-`1 1`
7+```
8+1 1
9+```
810
911続く数字はその前の2つの数字を加算することで求められる。 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
151920000未満まで、2の累乗値を求めなさい。答えのリストは数値の間にコンマを入れて適切にフォーマットして表示させなさい。1行に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/ja|previous]] | [[Basic Pascal Tutorial/Contents/ja|contents]] | [[Basic Pascal Tutorial/Chapter 3/Solution/ja|next]] |
2430
2531---
2632*From the Free Pascal wiki, page "Basic Pascal Tutorial/Chapter 3/Programming Assignment/ja", 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).*

Back to history