What's the advantage of using a for loop over a while loop?

The number of times a for loop repeats is easy to find inside the parenthesesA for loop prevents infinite loopsThere's no advantage of using a for loop over a while loopA for loop has a code block and a while loop doesn't

The number of times a for loop repeats is easy to find inside the parentheses.