Csharp/CSharp Tutorial/Operator/Implication Operator
Версия от 15:31, 26 мая 2010; (обсуждение)
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