please give correct answer and i'll mark you as brainliest .. no spam please..
Answers
Answer:
JAVA PROGRAM FOR THIS--
import java.util.Scanner;
public class CenturyLeapYear
{
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
System.out.print("Enter the year to check: ");
int yr = in.nextInt();
if (yr % 4 == 0 && yr % 100 != 0)
System.out.println("It is a Leap Year");
else if (yr % 400 == 0)
System.out.println("It is a Century Leap Year");
else if (yr % 100 == 0)
System.out.println("It is a Century Year but not a Leap Year");
else
System.out.println("It is neither a Century Year nor a Leap Year");
}
}
Explanation:
consider the sequence of 3 digit numbers which have remainder 3 on division by 5