Csharp/CSharp Tutorial/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);
}
}
p is False, q is False False implies False is True