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