Caterpillar Interview Question

4. Explain for loop and while loop ?