Boolean logical OR operator : Logical Relational Operators : Operator C# Examples


C# Examples » Operator » Logical Relational Operators »

 

Boolean logical OR operator









    
class  MainClass
{

    public  static  void  Main()
    {
        bool  result;
        
        
        result  =  (1  ==  1)  ||  (1  ==  0);
        System.Console.WriteLine("(1  ==  1)  ||  (1  ==  0)  is  "  +  result);
        result  =  (1  ==  0)  ||  (1  ==  0);
        System.Console.WriteLine("(1  ==  0)  ||  (1  ==  0)  is  "  +  result);
    }

}
    
   
  
   



Output

(1 == 1) || (1 == 0) is True
(1 == 0) || (1 == 0) is False


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Operator
» Logical Relational Operators