Cognizant interview question

Deference between for loop and while loop