โ Back to Loops
Question 109
For Loop: Countdown by Twos
For Loop: Countdown by Twos
Use a for loop to count down from 10 to 0 by twos, printing each number on its own line.
Expected output:
10
8
6
4
2
0Expected Output:
10 8 6 4 2 0
Topics:
Loops
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (clog, fn, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.