import java.util.*;
public class leapYear
{
public static void main(String surat[])
{
Scanner sc=new Scanner(System.in);
System.out.print("Enter the year : ");
int n=sc.nextInt();
if(n%4==0)
{
System.out.println("This is a leap year....");
}
else
{
System.out.println("This is not a leap year.....");
}
}
}
public class leapYear
{
public static void main(String surat[])
{
Scanner sc=new Scanner(System.in);
System.out.print("Enter the year : ");
int n=sc.nextInt();
if(n%4==0)
{
System.out.println("This is a leap year....");
}
else
{
System.out.println("This is not a leap year.....");
}
}
}
No comments:
Post a Comment