📅  最后修改于: 2022-03-11 15:03:48.406000             🧑  作者: Mango
//The general syntax of a while loop looks like this:
while (boolean expression) {
body
}
/*A while loop will continue to repeat as long as its boolean expression
evaluates to true. The condition typically includes a value or variable
that is updated within the loop, so that the expression eventually
becomes false.*/