Name: Anonymous 2014-03-04 22:59
I don't know exactly what to do in this problem. It seems maddeningly simple, but I'm at a loss.
I want to find all of the multiples of 3 and 5 that are less than 1000, then find their sum.
I've got this:
while (x < 999 && y < 1000):
{
x += 3;
y += 5;
}
Where/how can I calculate the sum?
I want to find all of the multiples of 3 and 5 that are less than 1000, then find their sum.
I've got this:
while (x < 999 && y < 1000):
{
x += 3;
y += 5;
}
Where/how can I calculate the sum?