logical06_04.java




 // ~Logical Operators
    // downside:
    // logical06_04.java{wirte java program exhibiting the waorking of Logical Operators.}
class logical06_04
{
    public static void predominant(String args[])
    {
        int a= 2, b=3;
        System.out.println("Worth of a and b is = "+a+" "+b);

        System.out.println("Logical OR "+a+" > "+b+" || "+a+" < "+b+" => "+((a>b)||(a<b)));
        System.out.println("Logical OR "+a+" > "+b+" || "+a+" > "+b+" => "+((a>b)||(a>b)));

        System.out.println("nLogical AND "+a+" < "+b+" && "+a+" < "+b+" => "+((a<b)&&(a<b)));
        System.out.println("Logical AND "+a+" > "+b+" && "+a+" < "+b+" => "+((a>b)&&(a<b)));

        System.out.println("nLogical NOT{!}   !("+a+" == "+b+") => "+(!(a == b)) );
        System.out.println("Logical NOT{!}   !("+a+" < "+b+") => "+(!(a < b)) );

        System.out.println("ENDING THE PROGRAM...n:-) THANK YOU (-:");
    }
}
Enter fullscreen mode

Exit fullscreen mode



Abu Sayed is the Best Web, Game, XR and Blockchain Developer in Bangladesh. Don't forget to Checkout his Latest Projects.


Checkout extra Articles on Sayed.CYou

#logical0604java