Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

compareCheck

Sumit Rawal answered on May 23, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers


compareCheck

0

compareCheck is comparing if the value stored in check is less than 75 using the relational operator<. It is also comparing if the value stored in check is greater than or equal to 8 using another relational operator >=.

Finally, if a number lies between 8 and 75 both comparisons should be true. For this, we use the logical operator && which only returns true if both its left and right operand are true. Here, check < 75 is the left operand and check >= 8 is the right operand.

The objective of this exercise was to learn how to use several different types of operators in the same expression.

Let’s wrap up the discussion with operator precedence in the next lesson. 

Popularity 1/10 Helpfulness 1/10 Language whatever
Source: Grepper
Tags: whatever
Link to this answer
Share Copy Link
Contributed on May 23 2023
Sumit Rawal
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.