Todos los libros

Profesional

Apps Acerca de Coach Iniciar sesión Empezar a leer

Computer Science · Glosario

¿Qué es Nested loop?

Definition 16.5 Primary & Middle School Computer Science · Capítulo 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.
Leer en el capítulo →