Create an implication operator in C# : Implication Operator : Operator C# Examples


C# Examples » Operator » Implication Operator »

 

Create an implication operator in C#









    
using  System;  
  
class  Example  {    
    public  static  void  Main()  {        
        bool  p=false,  q=false;  
                  
        Console.WriteLine("p  is  "  +  p  +  ",  q  is  "  +  q);  
        if(!p  |  q)  
              Console.WriteLine(p  +  "  implies  "  +  q  +  "  is  "  +  true);      

    }  
}
    
   
  
   



Output

p is False, q is False
False implies False is True


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Operator
» Implication Operator