java program to check that the given year is leap year or not.
import java.util.*;
public class HelloWorld {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int year=sc.nextInt();
if(year%4==0)
{
if(year%400==0)
{
System.out.println("yes");
}
else if(year%100==0)
{
System.out.println("no");
}
else
{
System.out.println("yes");
}
}
else
{
System.out.println("no");
}
}
}