Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

the ______ loop is ideal in situations where you always want the loop t…

Question

the ______ loop is ideal in situations where you always want the loop to iterate at least once.
options: for, while, do-while, posttest

Explanation:

Brief Explanations

In programming, a do - while loop first executes the body of the loop and then checks the condition. This means it will always run at least once. A for loop and a while loop check the condition before executing the loop body, so they may not run at all if the condition is initially false. "posttest" is not a standard loop type in this context.

Answer:

C. do - while