Ericsson Interview Question

difference between for loop and while loop