newbie correct if/else statement argument??

Hi! I am an ultra beginner at c++, and am trying to teach myself. I have created a problem and am looking for the correct way to express an argument in an if/else statement.
the program i am working on takes a number entered by the user and for one of the if/else statements I am trying to return a result if the number is between 3 and 5.
I cant seem to get it where I can make this work.
Any help would be super appreciated!
... if the number is between 3 and 5.

You can split this up in two expressions:
One that checks if the number is greater than 3, and another
one that checks if the number is smaller than 5.
To check if both expressions are true you can combine them by using the && (and) operator.

http://www.cplusplus.com/doc/tutorial/operators/#logical
Thanks so much!! Got it to work!
Topic archived. No new replies allowed.