I am trying to count the amount of numbers(decimals: x/100) between another set of decimals EX: (0.0 and 0.1) and total them in a variable called pointOne and I'm not sure why it isn't working. Here's a code segment:
if((x/100) >= 0.00 || (x/100) <= 0.10)
{
pointONE = pointONE++;
}
This continues for the numbers 0.0 to 0.9 (contained in if statements) and at the end of the if statements prints the amount of numbers for every given range. Any idea what is wrong?
2006-09-25
05:32:44
·
3 answers
·
asked by
Reaper0886
1
in
Computers & Internet
➔ Programming & Design