Learn to Program with ZedLX

Free Online Programming Course for Beginners

Basics of for Loops [8/10]

In this example, the for loop counts down from 50 to 1. The initial value (50) of the loop is greater than the bounding value (1).
[Run the program]

Exercise:

1. Change the argument of the sleepMs function from 55 to the expression n*4 .

Turn the tablet to landscape to get a different arrangement.

Loading...