Java Program to check for leap year.1 min read

Output: