Skip to main content
Search
Search This Blog
Livecodo
Pages
Home
Courses
Blog
About us
More…
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
April 10, 2024
Java program to check leap year or not
import java.util.*; public class year { public static void main(String[] args) { Scanner n=null; int a,x,y; n=new Scanner(System.in); if(a%100==0 && y%4==0) {System.out.println("leap year"); } else { System.out.println("not leap year"); } } }
Popular Posts
March 26, 2024
Dynamic Memory allocation in C
May 18, 2024
Searching and sorting Algorithm in C