
You will need a for loop and an understanding of modulus, and a little bit of good old fashioned logic.
Good luck! Read More

Well if `X % 3` is zero then you know X is divisible by 3. Read More

when something is evenly divisible by a number the modulo is 0.
15 / 3 = 5
15 % 3 = 0
Knowing this you can write the following code to see if something is divisble by a number:
if(someNUmber % 3 == 0)
the number is divisble by 3 … Read More

x<=i<=y
Is not valid c++. If you need to loop between all number in x and y then you can use:
for (int i = x; i <= y; i++)
Wich is translated to: start with `i` equall to `x` and loop while `i` is less than or equall to … Read More

What did you plug in for the missing values and what does your for loop look like now? Remember when you are doing the summation that if the number is divisible by 15 you add 15, if it is divisible by 5 you add 5, if it is divisible by … Read More

@ivel
I looked at the code you have written and at NathanOliver's helpful suggestions. I came to the conclusion that you need beginner's help.
I took your code and corrected it, please study it:
/* modulus_exercise101.cpp
Write a program that counts the numbers from 3 to 117.
For multiples of … Read More

Yes, and why not just check for divisible by 15? Read More