Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

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 Less than or equal to Greater than 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 false if...
View Full Document

This document was uploaded on 03/03/2014.

Ask a homework question - tutors are online