Skip to content · ⁨コンテンツへスキップ⁩
English

Repeating work

  • A loop runs the same block of code many times, so you don't copy it by hand.
  • C has three loops: while, for, and do-while. They all repeat while a condition is true.
  • The condition is checked each time around. When it becomes false, the loop stops.
日本語

作業の繰り返し

  • ループは同じコードブロックを何度も実行するため、手動でコピーする必要がありません。
  • C には3つのループがあります:while 、for 、do-while 。条件がtrueの間すべて繰り返されます。
  • 各反復時に条件が確認され、falseになるとループは停止します。

Handout · ⁨プリント⁩

Log in or create account · ⁨ログインまたはアカウント作成⁩

IGCSE, A-Level & AP