PatrickFrankAIU / ITWEB220-2404A

Learning resources for students in ITWEB 220, term 2404A.
0 stars 0 forks source link

Exercise: Simple Counting Loop (But Backwards!) #14

Open PatrickFrankAIU opened 3 months ago

PatrickFrankAIU commented 3 months ago

Write a loop that counts backwards from 10 to 1 and logs each number to the console.

Tip: The "--" works just like the "++" operator, but it subtracts one instead of adding one.

Stretch goal: Write both a FOR loop version and a WHILE loop version.