Answers for "c# or logic"

C#
1

c# or

if (2 > 1 || 1 == 1) 
{ 
	// 2 is greater than 1 and 1 is equal to 1!
}
Posted by: Guest on February-07-2021
1

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