I advised you that an expression is a bit of code that produces a fee this piece of code produces a boolean cost actual or false that's why we refer to it as a boolean expression we also have the inequality operator so when we run this software we're gonna see fake allow's take a look we get fake due to the fact thesevariables are equal so the expression X isn't always equal to Y returns false we also biofit benefits have more than more than or identical to less than and much less than or same to so if I exchange Y to two this expression is gonna compare to proper due to the fact X is less than or equal to Y take a glance there you pass subsequent we are going to talk approximately logical operators within the remaining academic you study that a boolean expression produces a boolean fee now there are instances we want to mix multiple boolean expressions permit me show you so I'm going to declare an integer referred to as temperature and set it to 22 next we claim a boolean variable is heat now we want to check to look if temperature is more than 20 and much less than 30 so we write a boolean expression like this temperature greater than 20 here we need to use the cease operator so thoseampersands represent
Comentários