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)
{
int a, b;
string str;
Console.WriteLine("Please enter the subject line for program");
str = Console.ReadLine();
Console.WriteLine("You Entered: {0}", str);
Console.WriteLine("Enter values for a and b");
a = int.Parse(Console.ReadLine());
b = int.Parse(Console.ReadLine());
Console.WriteLine("Checking if values are equal.....");
System.Threading.Thread.Sleep(10000); // puts the program to wait or on hold for 10 seconds and
//then displays output from if condition
if (a.Equals(b))
{
Console.WriteLine("Values are equal");
}
else
{
Console.WriteLine("Entered Values are not equal");
}
Console.ReadKey();
}
}
}This code show the Interactive If Else Example.
