the DO WHILE...loop is an which controlled loops?
Answers
Answered by
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
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
Hindi,
1 month ago
Math,
1 month ago
Math,
1 month ago
Computer Science,
4 months ago
English,
11 months ago