write a java program to enter a year check if the year is leap year or not
Answers
Answered by
2
Java Program to Find if a Given Year is a Leap Year
public class Check_Leap_Year.
Scanner s = new Scanner(System.
System. out. print("Enter any year:");
int year = s. nextInt();
boolean flag = false;
if(year % 400 == 0)
flag = true;
else if (year % 100 == 0)
Similar questions