1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
GuDViN [60]
3 years ago
7

Plzz help me plzzz help me its very important​ plzzz..........

Computers and Technology
1 answer:
Misha Larkins [42]3 years ago
6 0

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

   }

 }

}

You might be interested in
X is a natural number with<br>GCF(x, 36) = 9 and LCM(x, 36)<br>36) =108<br> Find x.​
Ksenya-84 [330]

Answer:

27

Explanation:

GCF(27, 36) = 9

LCM(27, 36) = 108

6 0
3 years ago
_____data becomes part of your destination file and remains static even if the source data change
labwork [276]
I believe it is linked. linked data can become a part of the destination file but it alsoremains connected to the source file.

https://officepowerusers.weebly.com/linking-and-embedded-between-excel-and-other-programs.html

check this out to see what you get out of it.
6 0
3 years ago
Read 2 more answers
If you want to use the randint function, you need to include import random in your program.
ziro4ka [17]

Answer:

A. True

Explanation:

Because to use randint (which means random integer) you need to import random module.

8 0
3 years ago
Which sequence of keyboard shortcuts would you use to COPY information from one cell to another?
Ray Of Light [21]

shift + v

ctrl+ v

hope this helps



6 0
3 years ago
Does anyone have the answers to edhesive 4.2 lesson practice I’ve been stuck on it for like 3 months
Ghella [55]

Answer:

1. 5, 10

2. 5, 7, 9, 11

3. 21

4. 10

Explanation:

8 0
3 years ago
Other questions:
  • With a C program (memory map), data in _____ is initialized by the kernel to arithmetic 0 or null pointers before the program st
    7·1 answer
  • Pablo can view a minimum of_____ panes and a maximum of_____ panes in a split screen worksheet.
    7·1 answer
  • Given the following function definition, what modifications need to be made to the search function so that it finds all occurren
    7·1 answer
  • While doing research on the Internet, what kind of website should you avoid because the information may be biased?
    11·1 answer
  • Read the following code: x = currentWeight print(x - 20) What value will this code calculate?
    8·1 answer
  • Which type of website is most likely to be biased when providing information about a product?
    8·2 answers
  • Davos has been reading about encryption recently. He begins to wonder how anything can be secure if everyone is using the same s
    13·1 answer
  • What is the output?<br> str = 'abcdef<br> print(str[2:50)
    6·2 answers
  • g Write a program that allows a user to input any text in your program. Using the tools that we have discussed, your program sho
    6·1 answer
  • How have the computers contributed in the banking ?<br>​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!