int intNum = 27;
if (intNum == 27)
{
Console.Writeline("intNumber is: {0}",intNum);
}
if (intNum > 3)
{
Console.Writeline("Number is Greater than 3.");
if (intNum == 6)
Console.Writeline("Number is: 6");
}
if (String.Compare(strName, "mohammad", True) == 0)
Console.Writeline("Matched");
if( (intX > 10 && intX < 20) || (intX > 25 && intX < 30))
Console.Writeline("OK");
if (strName == "Bryan")
strFavoriteColor = "Madras Yellow";
else if(strName == "Stephanie")
strFavoriteColor = "Sea Blue";
else if(strName == "Cathy")
strFavoriteColor = "Morning Mist";
else if(strName == "Betty")
strFavoriteColor = "Passionate Purple";
else if(strName == "Edward")
strFavoriteColor = "Battleship Gray";
switch(strName)
{
case "Bryan":
strFavoriteColor = "Madras Yellow";
break;
case "Stephanie":
strFavoriteColor = "Sea Blue";
break;
case "Cathy":
strFavoriteColor = "Morning Mist";
break;
case "Betty":
strFavoriteColor = "Passionate Purple";
break;
case "Edward":
strFavoriteColor = "Battleship Gray";
break;
}