using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
// if else nested
int a = 5; //Change value of a to see what gets executed and enjoy
if (a == 6)
{
Console.WriteLine("a is 6");
}
else if (a == 7)
{
Console.WriteLine("a is 7");
}
else if (a == 9)
{
Console.WriteLine("a is 9");
}
else
{
Console.WriteLine("a is 8");
}
Console.ReadKey();
}
}
}This program show the Basic Nested If Else.
