At Westonci.ca, we connect you with the best answers from a community of experienced and knowledgeable individuals. Get quick and reliable solutions to your questions from knowledgeable professionals on our comprehensive Q&A platform. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform.

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");

   }

 }

}