how do i make it so a variable is between two numbers?
i am making a program that lets the user type in a number.
if the number is between 90 and 100 it outputs 10, and if it is between 80 and 89 it outputs 9.
if (A <=100)
if (A >= 90)
if (A <=89)
if (A >=80)
but it outputs 10 every time any help?