Skip to content

vardhanb4/vardhanb4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

import java.util.Scanner;

public class LeapYear { public static void main(String args[]) { Scanner reader = new Scanner(System.in); System.out.print("Enter the Year = "); int year = reader.nextInt(); if (year % 400 == 0) { System.out.print("\nEntered year is a Leap Year."); } else if (year %4 == 0 && year %100 !=0) { System.out.print("\nEntered year is a Leap Year"); } else { System.out.print("\nEntered year is not a Leap Year."); } }

}

About

Config files for my GitHub profile.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors