Save
...
computer science
programming
relational operators
Save
Share
Learn
Content
Leaderboard
Learn
Created by
lucy dock
Visit profile
Cards (13)
Operation
A
symbol
that performs a
calculation
or
logical test
on its
operands
, it can be
arithmetic
,
relational
or
boolean
View source
Operand
The
values
that an
operation
applies to, e.g. in age > 18, both age and 18 are operands
View source
>
The relational operator greater than
View source
Relational operator
Any operator that
compares
its
operands
including =, ≠, >, <, ≥, and ≤
View source
≥
The relational operator
greater
than or
equal
to, sometimes written >=
View source
<
The relational operator less than
View source
≤
The relational operator
less
than or
equal
to, sometimes written
<=
View source
≠
The relational operator not
equal
to, sometimes
written
<>
or
!=
View source
=
The
comparison
operator
equal
to, sometimes
written
=
=
View source
True
The result of this expression:5 < (2 * 3)
View source
False
The result of this expression:(12 / 2) ≠ 6
View source
yes
The output from this pseudo-code:a = 7IF a ≥ 7 THEN OUTPUT 'yes'ELSE OUTPUT 'no'ENDIF
View source
no
The output from this pseudo-code:a = 7IF a ≠ 7 THEN OUTPUT 'yes'ELSE OUTPUT 'no'ENDIF
View source