In my if statement I want the values to be in a range to be within some range for the condition to be true.
for 100 to 199 so i put
if (num >= 100 && num <= 199) --- this is working
200 to 500 and over 900
else if (( num >= 200 || num <= 500) && (num > 900)) -- this is not working
nor is (( num >= 200 && num <= 500) && (num > 900))
" 501 to 900 except 700 to 750"
I have tried
else if (( num >=501 && num<=699) && (num>=751 && num <=900))
but cannot seem to get it to work , I tried to change the || and && though non is working , Please corrected me , any comment on how can I go about this.
Thanks in advance