Lesson 12 - Activity 2 - What are do-while loops?

Time: 15 minutes

Purpose: This activity helps you get familiar with other loops

Introduction: Youโ€™re had experience using for loops, occasionally you will meet a do-while loop

Task: Read up and create an example of a do-while loop. Why do people prefer for loops?

Experiment with their use and their absence in our code to date.