Question 1 of 10
A prize booth starts with 18 tokens and must keep handing out 2 tokens as long as at least 2 remain. Which statement best explains why a loop is the right structure?
- A. A loop repeats the hand-out until fewer than 2 tokens remain.
- B. An if statement subtracts 2 over and over without being rewritten.
- C. Eighteen sequential print statements stop automatically when 0 is reached.
- D. A loop is allowed only when the starting count is unknown when the program is written.