Pregunta de entrevista de Honeywell

Differences between for and while loop