C

Chandani • 9.82K Points
Tutor III

Q. Which of the following is valid syntax for creating a while loop?

  • (A) while{ } (condition)
  • (B) while(condition){ }
  • (C) while{ }
  • (D) All of these

Explanation by: Chandani
The correct syntax for creating a while loop is:

while(condition){
}

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics