Pergunta de entrevista da empresa Honeywell

Differences between for and while loop