View Single Post
Old May 2nd, 2008, 1:42 PM   #3
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 837
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
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.)
titaniumdecoy is offline   Reply With Quote