CGI interview question

Difference between a for loop and while loop?