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
The height of a model rocket, H(t), is a function of the time since it was<br> launched, t.
laiz [17]
I believe its either A or C
7 0
3 years ago
Find an integer value of b that makes x^2 + bx - 81 factorable.
Kaylis [27]

Answer:

b = 80

Step-by-step explanation:

Given that,

x² + bx - 81

To find,

value of b

What is factorable?

A polynomial equation with highest degree 2 is if factorable when

  1. we can find two terms which when multiples = -81x²,   <em> ( x² * - 81 = -81x² ) </em>
  2. and when add = bx

possible factors:

  1. -1x * 81x = -81x²   (Accepted)
  2. 1x * -81x= -81x²    (rejected)
  3. 9x * -9x = -81x²    (rejected)
  4. -9x * 9x = -81x²    (rejected)

Only when -1x , 81x is added -1x + 81x = 80x

so, bx = 80x

     b   = 80

<h3>The equation is x² + 80x - 81</h3>

5 0
3 years ago
During second period, Bryant completed a grammar worksheet. He got 21 out of 75 questions
Katena32 [7]

Answer:

28% I'm pretty sure

Step-by-step explanation:

5 0
2 years ago
Read 2 more answers
Write 7x10x10x10x10 with an exponent
polet [3.4K]

Answer:

7x10^4

Step-by-step explanation:

Please add the thanks and rate me please

6 0
3 years ago
Read 2 more answers
Select the graph of g(x) = |-2х + 6|<br> can someone tell me if this is right
Sauron [17]

Answer:

no

Step-by-step explanation:

the graph should be facing up.

6 0
3 years ago
Read 2 more answers
Other questions:
  • Solve for x. You must write your answer in fully simplified form.<br><br> -12x = 10
    11·1 answer
  • What number should be added to 942 to get a sum of 9882?<br>Answer​
    6·2 answers
  • There are 20 students in your class.if 4/5 of them are boys,how many are girls
    11·1 answer
  • PLEASE ANSWER ASAP + BRAINLIEST!!!!
    7·1 answer
  • An invested sum of $600000 to generate simple interest $3.9000 at 3 (whole number) 1/4% per annum if you don't know please don't
    13·1 answer
  • A- You roll a regular die (one dice). What is the probability of rolling a 4? SIMPLIFY,
    6·2 answers
  • How many 1/8 cup servings are in 4 cups of raisins?
    13·1 answer
  • Find the density of the object #3 if it has a mass of 100g
    8·1 answer
  • The quotient of y and 27
    9·1 answer
  • Find the surface area of the net below.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!