Ericsson interview question

difference between for loop and while loop