Please enable JavaScript to use CodeHS

Ciencias de la computación, Nivel A (Nitro)

Lesson 4.1 La iteración

Description

En esta lección, los estudiantes aprenderán cómo y cuándo usar un while loop. El código repetitivo se puede evitar utilizando un while loop. Estos bucles se usan para repetir un conjunto de declaraciones hasta que una condición se cumpla. Esta lección corresponde al tema 4.1 de Programación Avanzada de Ciencias Computacionales.


Objective

Students will be able to:

  • Represent iterative processes using a while loop
  • Execute a return or break statement inside an iteration statement to halt the loop and exit the method or constructor
  • Develop an algorithm
  • Identify if an integer is or is not evenly divisible by another integer
  • Determine a minimum or maximum value
  • Compute a sum, average, or mode