Welcome to Westonci.ca, where finding answers to your questions is made simple by our community of experts. Our platform provides a seamless experience for finding precise answers from a network of experienced professionals. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts.

plzz help me plzzz help me
its very important​


plzzz..........


Plzz Help Me Plzzz Help Me Its Very Important Plzzz class=

Sagot :

tonb

Answer:

import java.util.Scanner;

public class Main {

 public static void main(String[] args) {

   Scanner scan = new Scanner(System.in);

   while (true) {

     System.out.print("Enter a year (0 to exit): ");

     int year = scan.nextInt();

     if (year == 0) break;

     boolean leap = false;

     if (year % 4 == 0) {

       if (year % 100 == 0) {

         leap = (year % 400 == 0);

       }

       else {

         leap = true;

       }      

     }

     System.out.printf("%d is%s a leap year.\n", year, leap ? "":" not");

   }

 }

}