Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Nested loop?

Definition 16.5 Primary & Middle School Computer Science · Hoofdstuk 16 — Repeating with for: Turtle Drawings

A nested loop is a loop written inside the block of another loop. If the outer loop runs aa times and the inner loop bb times, the inner block runs a×ba \times b times.

The outer loop runs 5 times; each time, the inner loop draws the 4 sides of one square, then the turtle moves on with its pen up.
The outer loop runs 5 times; each time, the inner loop draws the 4 sides of one square, then the turtle moves on with its pen up.
Lees in het hoofdstuk →