Westonci.ca is the premier destination for reliable answers to your questions, provided by a community of experts. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform.

Choose the word that makes each sentence true.
Use a while/for loop when you know you want to make 10 passes through a loop
Use a while/for loop when you want to continue passing through a loop until a condition is met

Sagot :

Answer:

Use a for loop when you know you want to make 10 passes through a loop

Use a while loop when you want to continue passing through a loop until a condition is met

Explanation:

Let us first clear that when do we use for loop and when do we use while loop.

For loop is used when the programmer already knows the number of repetitions.

While loop is used when the number of iterations are not known but the condition has to be used to determine the number of iterations.

Hence,

Use a for loop when you know you want to make 10 passes through a loop

Use a while loop when you want to continue passing through a loop until a condition is met