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

Nested loops & 2-D lists · ⁨ネストループと 2次元リスト⁩

English

A loop inside a loop

  • You can put one loop inside another loop.
  • For every pass of the outer loop, the inner loop runs fully.
  • So an outer of 2 and an inner of 3 runs the body 2 × 3 = 6 times.
日本語

ループの中のループ

  • 一つのループを他のループの中に配置できます。
  • 外側のループが一回通じるたびに、内側のループは完全に実行されます。
  • つまり、外側が2で内側が3の場合、本体は 2 × 3 = 6 回実行されます。

Handout · ⁨プリント⁩

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

IGCSE, A-Level & AP