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.

User Maite
by
4.0k 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:

User Djeikyb
by
4.2k points