// Relational Operators// problem:// relat06_02.java{wirte java program showing the waorking of all Relational Operators.}classrelat06_02{publicstaticvoidmain(Stringargs[]){intx=10,y=11;System.out.println("Value of x = "+x+" and value of y = "+y);System.out.println("Equal to operator always give the boolean response.");System.out.println("Is "+x+" == "+y+" => "+(x==y));System.out.println("Not Equal to operator is also give the boolean response.");System.out.println("Is "+x+" != "+y+" => "+(x!=y));System.out.println("Greater than also give the boolean response.");System.out.println("Is "+x+" > "+y+" => "+(x>y));System.out.println("Greater than Equal to also give the boolean response.");System.out.println("Is "+x+" >= "+y+" => "+(x>=y));System.out.println("Lesser than also give the boolean response.");System.out.println("Is "+x+" < "+y+" => "+(x<y));System.out.println("Lesser than Equal to also give the boolean response.");System.out.println("Is "+x+" <= "+y+" => "+(x<=y));System.out.println("ENDING THE PROGRAM...\n:-) THANK YOU (-:");}}
Top comments (0)
Subscribe
We're a place where coders share, stay up-to-date and grow their careers.
Top comments (0)