← Back to Loops
Question 59
For Loop: Print Multiples of Five
For Loop: Print Multiples of Five
Use a for loop to collect the multiples of 5 from 5 up to 50, then print them on one line separated by single spaces.
Expected Output:
5 10 15 20 25 30 35 40 45 50= newline. The output ends with a newline — print one after the last line.
Hints4 available
Sign in to use hintsTopics:
Loops
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · 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.