asked 39.0k views
1 vote
When do you use a while loop INSTEAD of a for loop? (Choose the best two answers.)

Group of answer choices

To get input from the user until they input ‘stop’.

To do number calculations.

To repeat code.

When there is an unknown number of iterations needed.

asked
User Maite
by
7.9k points

1 Answer

6 votes

Answer:

To get input from the user until they input ‘stop’.

When there is an unknown number of iterations needed.

Step-by-step explanation:

answered
User Djeikyb
by
8.0k points

No related questions found