Cognizant Interview Question

Deference between for loop and while loop