---
title: "Discussion on \"Leap Year or Not Program\" | Hashnode"
description: "Discussion on \"Leap Year or Not Program\". Explanation:\n\nJava code :\nimport java.util.Scanner;\npublic class Main{\n    public static void main(String[] args){\n        Scanner sc = new Scanner(System.in);\n        System.out.print(\"Enter a Year = \");\n        int year = sc.nextInt();\n        if(y..."
url: "https://hashnode.com/posts/leap-year-or-not-program/63a87302675f03868d9f4aa3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Leap Year or Not Program](https://smartcookie.hashnode.dev/leap-year-or-not-program?utm_source=hashnode&utm_medium=feed)

Explanation: Java code : import java.util.Scanner; public class Main{ public static void main(String\[\] args){ Scanner sc = new Scanner(System.in); System.out.print("Enter a Year = "); int year = sc.nextInt(); if(y...

Dec 25, 2022 · 2 min read · smartcookie.hashnode.dev  
Read the article

-   [#leap-year-program](https://hashnode.com/tag/leap-year-program)
-   [#java-programming](https://hashnode.com/tag/java-programming)
-   [#java-interview-questions](https://hashnode.com/tag/java-interview-questions)
-   [#java-beginner](https://hashnode.com/tag/java-beginner)
-   [#java](https://hashnode.com/tag/java)

## Written by

[Madhu Palle](https://hashnode.com/@smartcookie)

@smartcookie · INDIA

  
[View profile](https://hashnode.com/@smartcookie)

Go with the flow

IIIT - N Software Geek. Startup Enthusiast. Build for the Future.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
