1.4.1 Loops

In this lesson you will examine loops. As was the case for conditional statements, loops in C++ work exactly with the same syntax as they are in Java.

This lesson will look at the two main loops:

  • For loops - Used primarily to loop a specified number of times.

  • While loops - Used primarily to loop while a condition is met.

Last updated