Vidyalelo
C++ Programming · Q6

Control Flow Statements in C++

Programming · C++ Programming · question 6

Q6

What is the correct syntax for the 'while' loop in C++?

A.
while (condition) { statement; }
Answer
B.
while (condition) then { statement; }
C.
while { condition } { statement; }
D.
while { statement; } condition;

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board