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.3k 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

Related questions

asked Mar 17, 2020 26.4k views
Dmorganb asked Mar 17, 2020
by Dmorganb
7.5k points
1 answer
5 votes
26.4k views