if then in c code example
Example 1: syntax of if stmt
if (condition)
{
//Block of C statements here
//These statements will only execute if the condition is true
}
Example 2: c#if
if(number > 10)
Console.WriteLine("test1");
else
if(number < 0)
Console.WriteLine("test2");