W.A.P to find the leap year
Answers
Answered by
3
import java.util.*;
class leap year
{
public static void main()
{
int y;
System.out.println("Enter an year")
y = in.nextInt()
if(y%400==0)
System.out.println("The year is a leap year");
else if(y%4==0)
System.out.println("The year is a leap of");
else if(y%100==0)
System.out.println("The year's not a leap year");
else
System.out.println("The year isn't a leap year");
}
}
class leap year
{
public static void main()
{
int y;
System.out.println("Enter an year")
y = in.nextInt()
if(y%400==0)
System.out.println("The year is a leap year");
else if(y%4==0)
System.out.println("The year is a leap of");
else if(y%100==0)
System.out.println("The year's not a leap year");
else
System.out.println("The year isn't a leap year");
}
}
Answered by
0
Answer:
class even
{
public static void main( int n )
{
if ( n/4==0)
{
system.out.println.(" number is leap year ");
}
else
{
system.out.println.(" number is not leap year ");
}
}
}
HOPE IT HELPFUL
PLEASE MARK ME AS BRAINLIST ANSWER AND FOLLOW ME
Similar questions
Social Sciences,
7 months ago
Physics,
7 months ago
Chemistry,
1 year ago
Social Sciences,
1 year ago
Math,
1 year ago