taks kamps

taks kamps

  • NA
  • 39
  • 6.8k

boolean logic help?

Nov 27 2018 7:45 AM
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);
}
}
}

Answers (1)