Basic Pascal Tutorial/Chapter 3/REPEAT..UNTIL/ja: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Basic Pascal Tutorial/Chapter 3/REPEAT..UNTIL/ja
| Old | New | Line | |
|---|---|---|---|
| 1 | + | REPEAT..UNTIL (著者: Tao Yue, 状態: 原文のまま修正なし) | |
| 2 | + | ||
| 3 | + | ポストテスト・ループは以下の形式をとる。 | |
| 4 | + | ||
| 5 | + | ``` pascal | |
| 6 | + | repeat | |
| 7 | + | 文1; | |
| 8 | + | 文2 | |
| 9 | + | until ブール式; | |
| 10 | + | ``` | |
| 11 | + | ||
| 12 | + | `repeat` ループでは、複合文がそのまま使える。言い換えれば、 begin-end を使う必要がない。`while` ループはブール式が `FALSE`になるまで続いたが、このループはブール式が `TRUE` になるまで続く。 | |
| 13 | + | ||
| 14 | + | このループはポストテスト・ループと呼ばれる。ループが実行された後で条件がチェックされるからである。`REPEAT` ループはブール式の初期値が何であれ、最低1回はループを実行したい場合に便利である。 | |
| 15 | + | ||
| 16 | + | | | | | | |
| 17 | + | |----|----|----| | |
| 18 | + | | [[Basic Pascal Tutorial/Chapter 3/WHILE..DO/ja|previous]] | [[Basic Pascal Tutorial/Contents/ja|contents]] | [[Basic Pascal Tutorial/Chapter 3/FOR..IN/ja|next]] | | |
| 19 | + | ||
| 20 | + | --- | |
| 21 | + | *From the Free Pascal wiki, page "Basic Pascal Tutorial/Chapter 3/REPEAT..UNTIL/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).* |
