using System; class Example { public static void Main() { bool b1, b2; b1 = true; b2 = false; if(b1 & b2) Console.WriteLine("(b1 & b2) is true"); if(!(b1 & b2)) Console.WriteLine("!(b1 & b2) is true"); if(b1 | b2) Console.WriteLine("b1 | b2 is true"); if(b1 ^ b2) Console.WriteLine("b1 ^ b2 is true"); } }
a = 8 a = 14 a = 6 a = -13