Question:Which of the following correctly implements a while loop?
A while (x < 5) { x++; } B while (x < 5) x++; C Both D None
+ AnswerC
+ ExplanationBoth forms are correct; The curly braces are optional if there is only one statement.
+ Report