C should be true is a is false and b is true. D should be true if a is true and b is false
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
bool a = true;
bool b = false;
bool c, d;
c = (!a) && b;
d = b || a;
Console.WriteLine(c + ", " + d);
}
}
}