โ Back to Loops
Question 119
continue: Sum Skipping Multiples of Three
continue: Sum Skipping Multiples of Three
Add up the numbers from 1 to 10, but use continue to skip any multiple of 3 (3, 6, 9). Print the total.
Expected output:
37Expected Output:
37
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.