#include
#include
int counter,sum, temp = 0;
main()
{
for (counter = 0; counter < 1000; counter ++)
{
while((counter % 3)|| (counter % 5)= 0)
{
temp = counter;
sum = sum + temp;
}
}
printf("The sum of all numbers divisible by 3 or 5 between 0 and 1000 is: " sum);
return 0;
}