Computer Science, asked by donald12, 1 year ago

W.A.P to find the leap year

Answers

Answered by CekuziSietan
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");
}
}
Answered by aryankaushal1
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