Exercise:

Make the loop start counting downwards from 10 and stop at 1.

The output should be 10 9 8 7 6 5 4 3 2 1 with line breaks.

Hint: Change the counter variable to 10, run the code as long as i is greater than 0, change i++ to i--.

Edit This Code:
Result:
Correct Code:
Correct Result:
Exercise - © w3schools.com