CJCoding With Joseph

Even Numbers to Ten

Using a loop, print the even numbers from 2 to 10, separated by single spaces:

2 4 6 8 10

There must be no trailing space after the final number.

Expected Output:

2 4 6 8 10
Topics:
Printing
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (p, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.