What can we do with the while statement?
Make loops
What value needs the statement in the brackets evaluate to in order for the loop to continue?
Need to be true, but in c++ true = 1
What is an infinite loop?
A loop that runs forever. The value of the expression is always true (1)
What is an iteration?
Every cycle of the loop
Second part
When is it a good idea to use a for statement (do a for loop) instead of the while loop we learned previously?
we know exactly how many times the iterations
How would you write a for-loop in code?
for (int i = 0; i <80; i++){// statements}
What is an off-by-one error?
An error normally when we use > or < instead of >= or <=. This iterated more or less than we need