write a java program to check whether the entered year is a leap year or not using if-else statement
Answers
Answered by
0
Answer:
import java. util. Scanner; class Leapyear. ...
public static void main(String arg[]) {
if(year!=0) { if(year%400==0)
System. out. println(year+" is a leap year"); else if(year%100==0) ...
else if(year%4==0) System. out. ...
System. out. println(year+" is not a leap year"); ...
System. out. println("Year zero
Similar questions