Learn how to start programming for repetition with the while statement.
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 how we deal with older content.
Image 'While loop process. Process statements before the while loop. Test: Does the Boolean expression evaluate to true? If it does, execute the body of the loop. If it does not, carry on with the rest of the program' - under Creative-Commons 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