Find out about another way to program repetition, for loops.
This page was published over 7 years ago.
Please be aware that due to the passage of time, the information provided on this page may be out of date or otherwise inaccurate,
and any views or opinions expressed may no longer be relevant. Some technical elements such as audio-visual and
interactive media may no longer work. For more detail, see our Archive and Deletion Policy.
Image 'var count = 1 sets the starting value, count <=10 is the condition which tests whether the finishing value has been passed, count = count +1 is the amount that the counter is increased by each repetition. The body of the loop is within the braces following the statement.' - under Creative Commons BY-NC-SA 4.0 license
Image 'Your First Program' - Copyright: Dreamstime
Image 'Variables and Data Types' - Copyright: Dreamstime
Image 'Operators' - Copyright: Dreamstime
Image 'Getting Data From a User and Displaying Results' - Copyright: Dreamstime
Image 'Booleans and the Comparison Operators' - Copyright: Dreamstime