Repetition - Iteration (continued)
Example: print the numbers from ten to one
set variable x to ten
while (x is greater than or equal to zero)
do [
print the valueof x
decrement x
]
Important algorithms: searching, sorting
Previous slide
Next slide
Back to first slide
View graphic version