if else statements

Im having trouble figuring out how to write a statement that performs one condition if the impute number is 1 >= x < 100, another condition if the number is 100>= x < 1000 and another if the number is 1000 >= x <= 5000. and how to get the program to terminate if the impute number is not within the range of 1-5000

please help
Notice how you are using < and > anyway:
Does 1 >= x < 100 mean 'if x is smaller or equal to one and x is smaller than 100' ?
Topic archived. No new replies allowed.