QUESTION IMAGE
Question
the ______ loop is ideal in situations where you always want the loop to iterate at least once.
options: for, while, do-while, posttest
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.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
C. do - while