Chapter
While Loops
From ComputerScienceOne by Dr Chris Bourke
Concepts
- Why should you avoid a semicolon after a while condition?
"Consider the following:\n\n1 while(i <= 10);\n\n2 {\n\n3 //perform some action\n\n4 i++; //iteration\n\n5 }\n\nA similar problem occurs: the while keyword and continuation condition bind to the next