Page 10 - PowerPoint Presentation
P. 10

Relational Operator











            • Example in Codepad


                                         1.int a=10, b=20, c=30, d=40, e=50;

                                         2.a==b

                                         3.a!=b

                                         4.a<b

                                         5.c>d

                                         6.d>=a

                                         7.a<=b

                                         8.(a+b)*c<(b-c)*d

                                         9.(a-b)*3=7

                                         10.(a-b)*3==7

                                         11.(a+b)(a*c)!=e*d

                                         12.(a+b)*(a*c)!=e*d
   5   6   7   8   9   10   11   12   13   14   15