question archive When we want our program to re-cycle after each use, that is, continue running until the user chooses to stop, we use a:     for loop     while loop     do-while loop     switch statement

When we want our program to re-cycle after each use, that is, continue running until the user chooses to stop, we use a:     for loop     while loop     do-while loop     switch statement

Subject:Computer SciencePrice:2.87 Bought7

When we want our program to re-cycle after each use, that is, continue running until the user chooses to stop, we use a:

   

for loop

   

while loop

   

do-while loop

   

switch statement

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Answer Preview

Answer:

  • To repeat a task again and again, generally loops are used.
  • do-while loop is a exit condition loop. That is it checks the condition after the statemetns in the block are executed. Hence do-while is suitble for repeating a task until users want to exit.

Therefore the correct option is "do-while".