STRUCTURE CONDITIONAL
while
The while loop is used to execute code repeatedly.
while (/ * condition * /) {
/ * Code * /
}
The condition must be a logical expression, similar to that of the if statement. First, the condition is evaluated. If the result is true, the code block is executed. Then the condition is reevaluated, and in case of giving true, the block is executed again. The loop is cut when the condition is false.