Programming Using Loops

Wed 31 Jan 2024 | Computing, Latest News 2023 - 24, Year 5

Article 28: We have the right to a good quality education.

We have been using count-controlled loops to create regular 2D shapes. Loops are a programming element that repeat a portion of code a set number of times until the process is complete – the repeat with a number tells the program how many times to repeat the code. We recalled the commands we needed to use including FD and RT as well as repeat. We also know that we need to use square brackets to create our loop. We could identify the changes each time when making the shapes – the repeat quantity and the amount of turn needed to create the corner of the shape.