Wap to use Relational Operator in Java

 class Relational

{

public static void main (String []arg)

{

int a=10,b=20;

System.out.println("Variable a="+a+"and b="+b);

System.out.println("The Below statement(a==b) is false");

System.out.println(a==b);

System.out.println("The Below statement(a!=b) is false");

System.out.println(a!=b);

System.out.println("The Below statement(a>b) is false");

System.out.println(a>b);

System.out.println("The Below statement(a<b) is false");

System.out.println(a<b);

System.out.println("The Below statement(a<=b) is false");

System.out.println(a<=b);

System.out.println("The Below statement(a>=b) is false");

System.out.println(a>=b);

}

}

Comments

Popular posts from this blog

Completed Certification from J.P. Morgan - Software Engineering Job Simulation

Student Registration form using PHP

Create a java Applet program of Calculator