import java.io.*;
import java.lang.*;
class ssva23
{
public static void main(String arg[])throws IOException
{
BufferedReader obj=new BufferedReader(new InputStreamReader(System.in));
System.out.println("\n LEAP YEAR");
System.out.println(" ---- ----");
System.out.print("\nENTER THE YEAR : ");
int year=Integer.parseInt(obj.readLine());
if(year%4==0)
{
System.out.println("\nTHE GIVEN YEAR IS LEAP YEAR");
}
else
{
System.out.println("\nTHE GIVEN YEAR IS NOT LEAP YEAR");
System.out.println("\n");
}
}
}Java
Calculate Leap Year 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.
