The sum of multiples of 3 or 5
Write code · Basic · §5.5, §7.3 Building up
Add up all the numbers from 1 to n that are multiples of 3 or multiples of 5, and store the sum in total.
Starter code
n = 10Solve this problem in your browser
Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.