Respuesta :

If you place a semicolon after the test expression in a while loop, it is assumed to be a null statement.

The "test" expression is executed once at the beginning of each iteration. The loop continues as long as the test evaluates to true. Failure of the "test" to exit the loop should be based on a condition or variable in the program that changes while the loop is running.

The while loop syntax requires a trailing semicolon. while for and while loops do not require a semicolon terminator at the end.

When using the while statement for the first time, it is possible to incorrectly place a semicolon after the "While(true/false expression)" part of the statement, as shown below. A semicolon is a null statement, a statement that does nothing.

Learn more about semicolons at

https://brainly.com/question/551059

#SPJ4

ACCESS MORE