import java.lang.*;

class Relational_Operators
{

public static void main(String args[])
{

int a=10,b=20;
System.out.println(“\nRelational Operators\n”);
System.out.println(“a : “+a);
System.out.println(“b : “+b);
System.out.println(a+” > “+b+” : “+(a>b));
System.out.println(a+” < "+b+" : "+(a= “+b+” : “+(a>=b));
System.out.println(a+” <= "+b+" : "+(a<=b)); System.out.println(a+" == "+b+" : "+(a==b)); System.out.println(a+" != "+b+" : "+(a!=b)); } }

97,559 total views, 240 views today

Get Free Email Updates..!
Join us for FREE to get instant email updates..! GobsInfo- Everything Unlimited
We hate spam. Your email address will not be sold or shared with anyone else.

6,343 Thoughts to “Java Program To Demonstrate Relational Operators”

  1. Everything composed made a lot of sense. However, what about this?
    suppose you were to write a awesome title? I mean, I don’t wish
    to tell you how to run your blog, however suppose you added a headline that makes people want more?
    I mean Java Program To Demonstrate Relational Operators – GobsInfo is kinda plain. You might peek at Yahoo’s front page and see how they create post titles to
    grab viewers to open the links. You might add a related video or
    a related pic or two to grab readers interested
    about everything’ve written. Just my opinion, it could make your posts a
    little bit more interesting.

Leave a Reply to Lafuma on sale Cancel reply