Originally Posted by Sentral If I understand the problem correctly, all you have to do is change Code: while(num1 < num2) to Code: while(num1 <= num2) The reason being the problem says it's inclusive, so you must include all numbers in the range, including the endpoints. that was the problem. woulda saved me a lotta headache if i would have just added that = sign. thanks a lot.
while(num1 < num2)
while(num1 <= num2)