What will you be learning?
For loops
While loops
Do loops
What is a loop?
A loop is a way to execute a piece of code repeatedly. Going round and round until an end condition is met
Three expressions:
- Starting condition: eg i = 0
- Ending condition: eg when i is not < 101
- Update statement: eg increase i by 1
The slides used together with SPF Chapter 5 is embedded below.
To view the following slide in full screen: Click Menu > View Full Screen
0 comments:
Post a Comment