Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class chaiwala {
- public static void main(String[] args){
- Scanner sc=new Scanner(System.in);
- System.out.print("Enter year=");
- int n=sc.nextInt();
- if(n%4==0){
- System.out.println("the Year is a Leap year");
- }
- else{
- System.out.println("the Year is not a Leap year");
- }
- }
- }
Add Comment
Please, Sign In to add comment