This preview shows page 1. Sign up to view the full content.
Unformatted text preview: • Decision statements
• Loops Page 3 Dr. S. GANNOUNI & Dr. A. TOUIR Introduction to OOP Relational Operators
Relational operators produce boolean values.
>= Page 4 Equal to
Not equal to
Less than or equal to
Greater than or equal to Dr. S. GANNOUNI & Dr. A. TOUIR Introduction to OOP Use of relational Operators
left_operand relational_operator right_operand
• counter < 5
• counter <= maximum • Relational operators can be combined with arithmetic operators:
• 5+3<4 false because 8 is not < 4 • myNumber % 2 == 1
View Full Document
This document was uploaded on 03/03/2014.
- Spring '14