Create an implication operator in C# : Implication Operator « Operator « C# / CSharp Tutorial






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);   

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








3.11.Implication Operator
3.11.1.Create an implication operator in C#