14.5k views
2 votes
The body of a while(...) { ... } loop will always executes atleast once, no matter what test condition is stated.

Select one:

a. TRUE

b. FALSE

User Jaysingkar
by
5.3k points

1 Answer

2 votes

Answer:

The correct answer for the given question is false.

Step-by-step explanation:

In the while loop if the condition is true then it executes the loop otherwise not so it is entry control loop.

syntax:

while(condition)

{

// statement

// increment and decrement

}

For example

int i=1;

while(i<=5)

{

cout<<"hello";

i++;

}

In this example variable i is initialized by 1 1<=5 which is true it execute the statement and print hello after that increment the value of i =i+1 so i=2 i<=5 which is again true and print hello this will continue untill the condition in while loop is false when condition is false it terminate the loop.

User JBeckton
by
5.6k points