Answers for "or operators c#"

C#
5

c# or

"c# 'or' is '||' and 'and' is '&&'"
Posted by: Guest on January-28-2022
1

c# or

//the or operator in c sharp is "||" (key to the left of 1 btw ;))
if(a = 0 || b = 0)
{
  //a or b is 0
}
Posted by: Guest on April-12-2021
0

c# or

if (true || false) { //Checks if either side is true
  Console.WriteLine("One is true");
}

if (false || false) {
  Console.WriteLine("Both are false");
}

//Output:
//One is true
Posted by: Guest on November-03-2020

C# Answers by Framework

Browse Popular Code Answers by Language