Challenge: Using Multiple Operators

Test yourself and implement what you have learned so far in this chapter.

Problem statement

You are given a variable, check, which stores an integer value. You have to create a variable compareCheck which checks if the value stored in check is less than 75 and greater than or equal to 8. The result should be true if it is between 8 and 75, and false if it isn’t.

Input

The input is the variable check.

check has already been declared for you.

Output

The output will be the value assigned to compareCheck.

Sample input

3

Sample output

false

Test yourself

Write your code in the given area. Try the exercise by yourself first, but if you get stuck, the solution has been provided. Good luck!

Create a free account to access the full course.

Continue your learning journey with a 14-day free trial.

By signing up, you agree to Educative's Terms of Service and Privacy Policy