3 Things to Watch for in while Loops
This post was translated from Chinese by AI. If anything reads oddly, the Chinese original is authoritative. 中文原文
While(条件表达式){
循环体 //Specified statement
}
1. The expression must not be empty; 2. The expression must not be a constant; 3. The loop body must contain a statement that changes the value of the condition expression; otherwise, it will become an infinite loop
Last updated 2024-01-14
Comments 0