Computer Science, asked by sonipriti288, 4 months ago

the DO WHILE...loop is an which controlled loops?​

Answers

Answered by anindyaadhikari13
3

Answer:

  • The DO-WHILE loop is an exit controlled loop.

Explanation:

  • The DO-WHILE loop is an exit controlled loop i.e., it checks the condition after executing the statements. This means the statements written inside the loop will be executed at least once even if the condition is true or false.

Syntax (QBASIC):

DO

    Statement_1;

    Statement_2;

    .

    .

    .

    Statement_n;

LOOP WHILE condition

•••♪

Answered by BrainlyProgrammer
1

Answer:

  • The DO WHILE Loop is an exit controlled loop

Reason:

  • It checks the condition after first iteration of this loop
  • It executes once even if the condition is false

Syntax(Java) :

do

{

//write your statement here

statement 1;

statement 2;

statement n;

}

while (condition); //Don't forget to put the semicolon after while.

Similar questions
Math, 11 months ago