Computer Science, asked by grishmagandhi3005, 10 months ago

if the test condition is initially false the loop body is not executed at all. give answers​

Answers

Answered by harshkum2004
3

Answer:

In total there are 2 types of loop

Entry controlled loop

Exit controlled loop

if it is entry controlled loop it first checks the condition and if it evaluates to be true it execute but if it is false the loop body it not at all executed

Example for loop,while loop;

but

it is different i case of exit controlled loop it checks the condition after execution of loop body so it will execute at least once whether the condition is true or false if the condition is true it continues to next iteration but if it is false the control gets out of the loop so it is executed at least once in exit controlled loop

Example    do while loop.

hope it will help u

Pls mark as brainliest if u like it.

Answered by haritha13400
1

Answer:

while loop

Explanation:

The basic format of while loop is as follows:

do

{

statements

} while (expression);

As we saw in a while loop, the body is executed if and only if the condition is true. In some cases, we have to execute a body of the loop at least once even if the condition is false.

Similar questions
Biology, 10 months ago