Im having a problem with the while loop in my code, if I change what X2 is being compared to to anything other than 0 it doesnt hit the while loop, I am hoping its just some weird mistake. Thanks in advance for any help.
X2 = 0.5;
while (X2 >= 2.5)
{
total = total + 1;
X2 = X2 - 0.00001;
}