โ Back to Loops
Question 101
For Loop: Print Odd Numbers 1 to 9
For Loop: Print Odd Numbers 1 to 9
Use a for loop to print every odd number from 1 to 9, each on its own line.
Expected output:
1
3
5
7
9Expected Output:
1 3 5 7 9
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.