Hello Answerers it would be great if you could answer this:

The difference between a for loop and a while loop is that a for loop is a loop that happens a certain number of times. A while loop happens until a certain condition is met. How do you know when to use each one? Give specific examples in your answer.

I've been looking for answers on brainly and found lots of questions like this but none of them fit what I'm looking for. So if you remember that you have already answered this question on a different account please don't use the same answer again and put it here. The right answer will get a brainliest. Thank you.

E d g e n u i t y - MS Coding 1 A

Respuesta :

Answer:

A for loop can be used to make something repeat as many times as you program it to, but a while loop only stops when you complete the task, or a certain condition is met. So, if you program a for loop to fill a bucket six times it will fill the bucket six times.

.............................
RELAXING NOICE
Relax