Abdullah047

Leap year

Nov 13th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class chaiwala {
  3. public static void main(String[] args){
  4. Scanner sc=new Scanner(System.in);
  5. System.out.print("Enter year=");
  6. int n=sc.nextInt();
  7. if(n%4==0){
  8. System.out.println("the Year is a Leap year");
  9. }
  10. else{
  11. System.out.println("the Year is not a Leap year");
  12. }
  13. }
  14. }
Add Comment
Please, Sign In to add comment