Repetition - Iteration

From TRCCompSci - AQA Computer Science
Revision as of 10:54, 15 December 2016 by Robbie Rotten (talk | contribs) (Created page with "Repetition is the use of a for loop to execute one piece of code over and over. There are multiple ways to create a for loop though. These are: * while uses one condition that...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Repetition is the use of a for loop to execute one piece of code over and over. There are multiple ways to create a for loop though. These are:

  • while uses one condition that which if met, will repeat the code.
1  while (true)
2                 {
3                    x ++
4                 }