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
Answer:
Step-by-step explanation:
House?
Number of hours left to work(x) = 15 hours - (3 hours/day)x
Note how this Number of hours decreases steadily from its initial value (15 hours) at the rate of 3 hours/day. The domain of x is [0,5].
The answer is 15 because to the the lenght of the missing number you have to use the Pythagorean Theorem.So first you have to use c^2=a^2 +b^2.
25^2=20^2 + b^2 then 625=400 + b^2. 625-400= 225. So what equals 225. The answer is 15. Hope this helps
Answer:
it would be A
Step-by-step explanation:
hopefully it helped
Answer:
x = 20
y = 70
Step-by-step explanation:
Solve for x:
5x - 20 = 3x + 20
2x - 20 = 20
2x = 40
x = 20°
Solve for y:
x + y = 90°;
(20) + y = 90°
y = 90 - 20
y = 70°
Hope this helps!