true expressions for operators : Logical Relational Operators : Operator C# Examples


C# Examples » Operator » Logical Relational Operators »

 

true expressions for operators









    
class  MainClass
{
    public  static  void  Main()
    {
        bool  result;
        
        result  =  10  !=  1;
        System.Console.WriteLine("10  !=  1  is  "  +  result);
        result  =  10  >  1;
        System.Console.WriteLine("10  >  1  is  "  +  result);
        result  =  10  >=  1;
        System.Console.WriteLine("10  >=  1  is  "  +  result);
        int  intValue1  =  10;
        int  intValue2  =  1;
        result  =  intValue1  !=  intValue2;
        System.Console.WriteLine("intValue1  !=  intValue2  is  "  +  result);
    }
}
    
   
  
   



Output

10 != 1 is True
10 > 1 is True
10 >= 1 is True
intValue1 != intValue2 is True


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Operator
» Logical Relational Operators