Answers for "how to use or in a if statement in C#"

C#
2

how to make if statement c#

if (/*condition here*/)
{
	//code here
}
Posted by: Guest on March-04-2020
1

if c#

int time = 22;
if (time < 10) 
{
  Console.WriteLine("Good morning.");
} 
else if (time < 20) 
{
  Console.WriteLine("Good day.");
} 
else 
{
  Console.WriteLine("Good evening.");
}
Posted by: Guest on September-23-2020

Code answers related to "how to use or in a if statement in C#"

C# Answers by Framework

Browse Popular Code Answers by Language