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!
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.