@@ -0,0 +1,713 @@
+// Demonstrate the relational and logical operators.%0Aclass RelLogOps %7B%0A%09public static void main(String args%5B%5D) %7B%0A%09%09int i, j;%0A%09%09boolean b1, b2;%0A%09%09%0A%09%09i = 10;%0A%09%09j = 11;%0A%09%09if(i %3C j) System.out.println(%22i %3C j%22);%0A%09%09if(i == j) System.out.println(%22i %3C= j%22);%0A%09%09if(i != j) System.out.println(%22i != j%22);%0A%09%09if(i == j) System.out.println(%22this won't execute%22);%0A%09%09if(i %3E= j) System.out.println(%22this won't execute%22);%0A%09%09if(i %3E j) System.out.println(%22this won't execute%22);%0A%09%09%0A%09%09b1 = true;%0A%09%09b2 = false;%0A%09%09if(b1 & b2) System.out.println(%22this won't execute%22);%0A%09%09if(!(b1 & b2)) System.out.println(%22!(b1 & b2) is true%22);%0A%09%09if(b1 %7C b2) System.out.println(%22b1 %7C b2 is true%22);%0A%09%09if(b1 %5E b2) System.out.println(%22b1 %5E b2 is true%22);%0A%09%7D%0A%7D%0A

Demonstrate the relational and logical operators