Answers for "if in c #"

C#
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

C# Answers by Framework

Browse Popular Code Answers by Language