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
Find the standard deviation for the following scenario:
Drupady [299]

Answer:

2,800

Step-by-step explanation:

4 0
3 years ago
Factor 5x 2 - 7x + 2. (5x + 2)(x - 1) (5x - 1)(x - 2) (5x - 2)(x - 1)
Lina20 [59]
<span>5x^2 - 7x + 2
5x^2 - 2x - 5x + 2
x(5x - 2) - (5x - 2)
(5x - 2)(x - 1)

The answer is: (5x - 2)(x - 1).</span>
8 0
3 years ago
When would there be only four different equations for a set of math mountain numbers?
Monica [59]
Only when any equation you find among those numbers can be simplified into one of the four main equations, wich means you only have four different true statements, and lots of equivalences<span>.</span>
6 0
3 years ago
Read 2 more answers
Simplify |65.45-42.45|-(30.40+45.83)
alisha [4.7K]

Answer:

−

53.23

Step-by-step explanation:

5 0
3 years ago
Read 2 more answers
Which represents all the values of x that make the rational expression 2x-4 over x-5 undefined?
mixas84 [53]

For this case we have the following expression:

\frac {2x-4} {x-5}

By definition, we have the expression undefined when the denominator is 0.

So:

x-5 = 0

Adding 5 to both sides of the equation:

x-5 + 5 = 5\\x = 5

Thus, the expression is undefined when x = 5.

Answer:

Option B

5 0
3 years ago
Other questions:
  • (+17)-(+13)+(-20)+(-5)-(-45),necessito do calculo
    6·1 answer
  • Pls help me it’s math
    15·1 answer
  • 18)
    9·2 answers
  • Find the polar coordinates corresponding to a point located at (- 4 .02, 11.64) in Cartesian coordinates
    13·1 answer
  • (6x^2-2x+4)-(3x^2-4x-3) show work
    13·1 answer
  • Write in standard form:<br><br> 4r^2 = 9
    7·1 answer
  • A polynomial p is graphed. What could be the equation of p? Choose 1 answer:
    7·1 answer
  • Plz plz hurry plz hurry plz hurry
    6·2 answers
  • 2/3 cup of juice for every 1/3 cup of oj. How many cups of juice is used for 1 cup of OJ
    12·1 answer
  • Please look at picture for question.
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!