Nested If Statement
using System;
// Nested if is 'if inside if'.
class Nested_if
{
static void Main(string[] args)
{
int a = 3, b = 5;
if (a == 3)
{
if (b == 5)
{
Console.WriteLine("Sum = " + (a + b));
}
}
Console.ReadLine();
}
}
Output:
Sum = 8