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
Vesna [10]
2 years ago
14

JAVA

Mathematics
1 answer:
Oksi-84 [34.3K]2 years ago
3 0

The program is an illustration of loops

<h3>What are loops?</h3>

Loops are program statements that are used to execute repeated statements

<h3>The java program</h3>

The program, written in Java where comments are used to explain each line is as follows:

import java.util.*;

public class Main{

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

 int num;

//Get input from the user

 num = input.nextInt();

//Initialize the largest to the first input

 int maxn = num;

//This loop is repeated until a negative input is recorded

 while (num >=0){

//If the current input is greater than the previous largest

     if (num>maxn){

//Set largest to the current input

         maxn = num;      }

//Get another input from the user

     num = input.nextInt();

 }

//Print the largest

 System.out.print("Largest: "+maxn);

}

}

Read more about loops at:

brainly.com/question/14284157

You might be interested in
Please help with this.I need more comparing parts and all of the corresponding parts.
Andrew [12]
Not sure about the statement
movement down 5 units
move right 2 units
3 0
3 years ago
(Please make sure your answer is 100% correct and Accurate)
I am Lyosha [343]
It would be 7813.50.
3 0
3 years ago
What is 5 tenth of 2 tenth
Fudgin [204]
5/10 and 2/10 beacuse tenth is the bottom number
4 0
3 years ago
Read 2 more answers
What is 13/5 written as a mixed number
Bas_tet [7]
<span>Expressed as a mixed number, 13/5 is equal to 2 3/5 or two and three fifths.

Hope this helps.</span>
4 0
3 years ago
Read 2 more answers
Bismuth-210 is an isotope that radioactively decays by about 13% each day, meaning 13% of the remaining Bismuth-210 transforms i
Luden [163]

Answer:

Approximately 76.5 mg.

Step-by-step explanation:

Given,

The initial quantity of the Bismuth-210, P = 233 mg,

Also, the rate of decay per day, r = 13 %

Thus, the quantity of the Bismuth-210 after 8 days would be,

A=P(1-\frac{r}{100})^8

=233(1-\frac{13}{100})^8

=233(1-0.13)^8

=233(0.87)^8

=76.4733194697

\approx 76.5\text{ mg}

3 0
3 years ago
Other questions:
  • Look at picture<br>look at picture​
    9·1 answer
  • The table shown below represents a function. Which of the following values could not be used to complete the table?
    10·2 answers
  • Y=-x+7 find x intercept
    8·1 answer
  • What is the volume of a rectangular prism? 9 in by 3 in by 2 in
    13·2 answers
  • 1634 divided by 12 round it to the nearst tenth
    13·2 answers
  • Tia earns $19.25 per hour she worked 36 hours.what is her straight time pay
    12·1 answer
  • Armando constructs a scale model of a building with a rectangular base. His model is 3 inches in length and 1.5 inches in width.
    8·1 answer
  • How much is 14 kg 450 gram less than 20 kg​
    7·2 answers
  • Please help, this is for 8th grade math.
    5·1 answer
  • ok so the first one is correct but i tried 70 for the last one but it says it is wrong so pls help meh!
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!