0% found this document useful (0 votes)
23 views2 pages

Relational Operators

The document outlines various relational operators used in programming, including greater than, less than, equal to, and not equal to. It provides examples of these operators with corresponding results based on given values for variables x, y, z, p, a, b, c, d, e, f, g, and h. The document serves as a reference for understanding how these operators function in comparison operations.

Uploaded by

Kiran Jasdev
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views2 pages

Relational Operators

The document outlines various relational operators used in programming, including greater than, less than, equal to, and not equal to. It provides examples of these operators with corresponding results based on given values for variables x, y, z, p, a, b, c, d, e, f, g, and h. The document serves as a reference for understanding how these operators function in comparison operations.

Uploaded by

Kiran Jasdev
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Relational Operators - Yash Ghugtyal 11C

S No. Operators

1 > Greater Than

2 < Less Than

3 >= Greater Equal To

4 <= Less Equal To

5 = Equal To

6 <> or != Not Equal To

S No. Example Result

1 5>6 False

2 5<6 True

3 5>=6 False

4 5<=6 True

5 5==6 False

6 5! = 6 True

7 y>p*26 False

8 (y>p) *26 26

9 x=<x+y False

10 x//y%*20 True

11 x! = y*z+3 False

12 x = = y*z+3 True

13 x-3!=y*2 False

14 x-(3!=y)*2 27.0

15 a==b True
16 c==d False

17 d==g False

18 f==d True

19 g==g True

20 h==c True

x = 29.0
y = 13
z=2
p = 0.5
a=""
b=""
c = 'great'
d = 'Great'
e = 'GREAT'
f = 'Great'
g = 'GREAT'
h = 'great'

You might also like