Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Nested loop » ?

Definition 16.5 Primary & Middle School Computer Science · Chapitre 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.
Lire dans le chapitre →