computer class 9 java
Attachments:
Answers
Answered by
0
Class abc
{
Void args[]
{
int a=2014;
if(a/4==0)
SOP leap year
{
Void args[]
{
int a=2014;
if(a/4==0)
SOP leap year
Answered by
1
import java.util.*;
public class leap_year
{
public static void main(String args[])
{
Scanner in=new Scanner(System.in)
int n;
System.out.println("enter any year");
n=in.nextInt();
if(n%4==0)
System.out.println("It is a leap year");
else
System.out.println("it is not a leap year");
}
}
hope my answer helped you
mark as brainliest
public class leap_year
{
public static void main(String args[])
{
Scanner in=new Scanner(System.in)
int n;
System.out.println("enter any year");
n=in.nextInt();
if(n%4==0)
System.out.println("It is a leap year");
else
System.out.println("it is not a leap year");
}
}
hope my answer helped you
mark as brainliest
uashenoy05:
tnx a lot for marking as brainliest
Similar questions