Caterpillar interview question

4. Explain for loop and while loop ?