Answers for "AND IN C #"

C#
2

c# and

//the and operator in c sharp is "&&" (hold shift and 6 ;))
if(a == 0 && b == 0)
{
  //both a and b is 0	
}
Posted by: Guest on April-12-2021
0

c# and operator

Console.WriteLine(true ^ true);    // output: False
Console.WriteLine(true ^ false);   // output: True
Console.WriteLine(false ^ true);   // output: True
Console.WriteLine(false ^ false);  // output: False
Posted by: Guest on July-18-2021

C# Answers by Framework

Browse Popular Code Answers by Language