A
Computer Programming I Instructor: Greg Shaw
COP 2210
Relational Operators and Expressions
← A boolean expression is anything that evaluates to true or false
← One kind of boolean expression is the relational expression
← A relational expression compares two quantities for one of 6 possible relationships
← The syntax of a relational expression is
quant1 operator quant2
where quant1 and quant2 are expressions, and
operator is one of the relational operators
|Relational Operators |
|Algebra |Java |Meaning |
|< |< |less than |
|≤ | |> |greater than |
|( |>= |greater than or equal to |
|= |== |equals |
|( |!= |does not equal |
← Examples of relational expressions
count > 0
amountDue == amountTendered
Math.pow(b,2) – 4 * a * c < 0
← See document, “The if Statement”
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- getting a loan to build a house
- what makes a man a man
- what makes a house a home
- a new way to buy a car
- make a resume for a job
- what is a theme of a story
- getting a loan to start a business
- is buying a house a good idea
- writing a will without a lawyer
- is a citation a charge
- is a citation a crime
- a reason a season a lifetime printable