101k views
0 votes
Once the logical expression at the start of a while loop is false, the statements after the end statement are

executed.



True or False?

User JBaczuk
by
5.4k points

1 Answer

2 votes

Answer:

True

Step-by-step explanation:

the while loop is used to execute the statement again and again unti the condition is true. Once the condition is False, the program control terminate the while loop and execute the next statement after the while loop.

for example:

int i=0;

while(i<5)

{

i++;

}

cout<<i<<endl;

one the code execute the while loop run 5 times and in the 6th times the condition become False then program control moves to print statement.

User Yizzlez
by
5.3k points