|
Re: count multiples of 6 between two numbers given by the user.
Your logic is not quite correct. Try X=35, Y=35 or X=42, Y=48.
Hint: Use a while loop instead of a do/while loop. The latter should be avoided when possible. (There is another problem with your code, but I will let you figure out what it is.)
|