โ Back to Loops
Question 202
Multiples of 3 up to 30
Multiples of 3 up to 30
Print every multiple of3from3up to and including30, one number per line: 3 6 9 12 15 18 21 24 27 30 Use a loop that steps by3and print each value withprintf("%d\n", i).
Expected Output:
3 6 9 12 15 18 21 24 27 30
Topics:
Loops
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.