- Explain the three statements needed to to formulate a for loop.
- Something to do before starting
- A test to perform as long as it’s true, keep looping
- Something to do after each loop (increase a variable)
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
The first answer seems a little vague to me.
If you're doing this as part of a test, I think you would need to talk about the initialisation or setting the variable to be used in the second or third section to get the marks.