Computer Science, asked by rahul733, 1 year ago

computer class 9 java

Attachments:

Answers

Answered by hell2
0
Class abc
{
Void args[]
{
int a=2014;
if(a/4==0)
SOP leap year
Answered by uashenoy05
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

uashenoy05: tnx a lot for marking as brainliest
Similar questions