using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class CalcAvgPerc
{
static void Main(string[] args)
{
int year;
Console.WriteLine("Enter the year you want to check is Leap or not");
year = int.Parse(Console.ReadLine());
Console.WriteLine("Checking.....");
System.Threading.Thread.Sleep(2000);
if (year % 400 == 0)
Console.WriteLine("Year {0} is Leap", year);
else if (year % 100 == 0)
Console.WriteLine("Year {0} is not a Leap Year", year);
else if (year % 4 == 0)
Console.WriteLine("Year {0} is a Leap Year", year);
else
Console.WriteLine("Year {0} is not a Leap Year", year);
Console.ReadKey();
}
}
}This program for Check if the Year is a Leap Year or Not in C# language.
