ITP 109x Chapter Notes - Chapter 7: Logical Connective, Negation, Logical Disjunction

63 views4 pages

Document Summary

Section 7. 01 if-else branching directs a program to execute either one statement group or another, depending on an expression"s value braces represents a grouping e. g. a grouping of statements. Section 7. 02 relational / equality ops relational & equality operators. Operator a < b a > b a <= b a >= b a == b a != b. Description a is less than b a is greater than b a is less-than or equal-to b a is greater than or equal to b a is equal to b a is not equal to b. Boolean data type that evaluates to true or false. Section 7. 03 multiple if-else branches nested if-else a branch"s statements can include any valid statements, including another if-else statement. Section 7. 05 logical operators logical operator treats operands as being true or false and evaluates to true or false. Logical operator description a && b a || b a.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents