Pregunta de entrevista de Cognizant

Main difference between for and while loop.