showing results for - "9 6 1 while loop syntax"
Alex
15 Jun 2019
1//The general syntax of a while loop looks like this:
2
3while (boolean expression) {
4   body
5}
6
7/*A while loop will continue to repeat as long as its boolean expression 
8evaluates to true. The condition typically includes a value or variable 
9that is updated within the loop, so that the expression eventually 
10becomes false.*/