26.2k views
2 votes
The condition that is tested by a while loop must be enclosed in parentheses and terminated with a semicolon

True False

User Jvilalta
by
8.7k points

1 Answer

7 votes

Answer:

False

Step-by-step explanation:

while loop is used to execute the statement again and again until the condition is TRUE.

Syntax:

initialization;

while(condition)

{

statement;

}

we write condition within the parentheses but without terminate with the semicolon.

Therefore., the answer is False

User Mark Elliot
by
8.5k points