import java.io.*;
class a25
{
public static void main(String arg[]) throws IOException
{
int n;
BufferedReader inp= new BufferedReader(new InputStreamReader(System.in));
System.out.println("\n\t\t\tFinding Leap Year");
System.out.println("\n\t\t\t~~~~~~~~~~~~~~~~~");
System.out.print("\nEnter the Year: ");
n=Integer.parseInt(inp.readLine());
if( (n%400==0)||( (n%100!=0)&& (n%4==0)) )
{
System.out.println("This Year "+n+" is a Leap Year");
}
else
{
System.out.println("This Year "+n+" is a not Leap Year");
}
}
}Java
Calculate The Given Year Is Leap or Not Using Java

Written by
View ProfileSenthilvelan Sambamoorthy
Senthilvelan Sambamoorthy is working as a Professor in Department of Master of Computer Applications, Paavai Engineering College, Namakkal, Tamilnadu, India, He is Masters in Computers Applications. Having 18+ years of experience and his area of interest is Java, JSP, Servlet, J2EE, C#, PHP, Python ASP.NET, SQL Server and etc.
