c# if statement

C#
 if(number > 10)
        Console.WriteLine("test1");
        else
        if(number < 0)
            Console.WriteLine("test2");if (1 + 1 = 2)
{
    Console.WriteLine("1 + 1 = 2");
}
else
{
    Console.WriteLine("1 + 1 = 3");
}
Source

Also in C#: