Mastery 22

When to use what type of repetition in a program:
Introduction
Computers excel at repeating sections of code over and over. They can very quickly do thousands of similar computations, one after the other. (On a computer with more than one processor, several computations may even be able to be done at the same time.) The main way to repeat a section of code in a program is with a “loop” construct. We sometimes speak of looping through a section of code when we are talking about repeating it over and over.

The FOR Loop
The WHILE Loop
The DO..WHILE Loop
Properties of Loops

Link to the page:
http://cis.stvincent.edu/html/tutorials/swd/basic/control/repetition/
link too a video:
https://www.youtube.com/watch?v=4Mu-6U103_8

TC1017 22

CC BY 4.0 Mastery 22 by ivanna lases is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.