Search This Blog

If you have any problem or question please write in the comments. We will try to solve and send you the solution. Not just that we will also post your problems solution on our blog.

Wednesday, 20 April 2011

Java program which tells that either the enterd year is leap or not

import java.util.*;
class leap
public static void main (String arg[])
Scanner in=new Scanner (;
int a;
System.out.print ("\n\t Enter the year = ");
if (a%4==0)
System.out.println ("\n\t Leap Year ");
System.out.println ("\n\t Not Leap Year ");

No comments:

Post a Comment