When should I choose 'While' over 'For'?

Asked by kemiadewale · 6 months ago

1 Answer

41
amorebise · 6 months ago Top Answer

Choose 'For' if you have a count (like 10 times). Choose 'While' if you have a goal (like 'until the user clicks stop'). It's about knowing the 'nature' of the repetition.

Log in to add a comment.