c# var if statement code example
Example 1: else if c#
if (statment) {
}
else if (statment) {
}
Example 2: 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.");
}