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
guapka [62]
3 years ago
12

Write a Java application that inputs a series of 10 integers and determines and prints the largest and smallest integer. Use a c

ounter-controlled while iteration.
Computers and Technology
1 answer:
klio [65]3 years ago
5 0

Answer:

import java.util.Scanner;

public class LargestSmallest {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.print("Enter 10 integers: ");

       int num = in.nextInt();

       int i = 1;

       int min = num, max = num;

       while (i < 10) {

           num = in.nextInt();

           if (num > max) max = num;

           if (num < min) min = num;

           i++;

       }

       System.out.println("Largest number: " + max);

       System.out.println("Smallest number: " + min);

   }

}

Explanation:

A Java application that inputs a series of 10 integers and determines and prints the largest and smallest integer is written above.

You might be interested in
A computer cannot boot if it doesn't have ?
aliina [53]

Answer:

without an operating system, a computer cannot boot, as it also provides services for the computer programs.

Hope This Helps!!!

3 0
2 years ago
Read 2 more answers
Somehow I lost 1000 points!!! Does anyone know what happened? Is it possible that I was hacked? ​
Dima020 [189]

Answer:

Explanation:

You most likely lost 1000 points because you cheated to get them if not there is a possibility you were.

6 0
3 years ago
Read 2 more answers
Describe one reason you would import data into a database.
AURORKA [14]
<span>You typically import data for the following reasons: You want to merge two databases by copying all the objects in one database to another. [ When you import, you can copy all the tables, queries, forms, reports, macros, and modules, along with table relationships, to another database in a single operation. You need to create some tables that are similar to tables that exist in another</span>
6 0
4 years ago
Read 2 more answers
Analyse how the reduction in size and the profitability of computer have influence their usage​
Olin [163]

HOPE ITS HELP

IN THE PICTURE

6 0
2 years ago
What term is used to describe state-sponsored attackers that are used for launching computer attacks against their foes
Dvinal [7]
The answer is : nation state actors
6 0
2 years ago
Other questions:
  • Can you give me a long list of old kid's cartoons
    8·1 answer
  • The font size on presentation slides should not be smaller than _____ -point.
    10·1 answer
  • I am confused in Java!
    12·1 answer
  • ASAP
    12·1 answer
  • How to highlight text on a kindle paperwhite?
    7·1 answer
  • Write a Python function called validateCreditCard that takes 8-digit credit card number as the input parameter (string value) an
    8·1 answer
  • A company that offers services for accessing and using the Internet is: *
    10·1 answer
  • A #1 Phillips screwdriver has a shaft diameter of 
    13·1 answer
  • You would use the _______ conditional formatting options when analyzing a worksheet in which you want to highlight the highest o
    13·1 answer
  • Which changes the natural world? <br> technology <br> science <br> prototypes <br> feedback
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!