ProAnswers.org

Differentiate between for loop and a while loop? What are it uses?

For executing a set of statements fixed number of times we use for loop while when the number ofiterations to be performed is not known in advance we use while loop.