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
notka56 [123]
3 years ago
14

Write a program whose input is two integers. Output the first integer and subsequent increments of 10 as long as the value is le

ss than or equal to the second integer.
Computers and Technology
1 answer:
Lubov Fominskaja [6]3 years ago
3 0

Answer:

import java.util.Scanner;

public class TestClock {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.println("Enter two integer numbers");

       int num1 = in.nextInt();

       int num2 = in.nextInt();

       int newSum=num1+10;

       System.out.println("The first number is "+num1);

       do{

          System.out.println(newSum);

          newSum +=10;

       }while (newSum <=num2);

   }

}

Explanation:

Using Java Programming language

  1. Prompt user for the two inputs and save them as num1 and num2(Using the scanner class)
  2. Create a new Variable newSum = num1+10
  3. Create a do...while loop to continually print the value of newSum, and increment it by 10 while it is less or equal to num2
You might be interested in
If the user does NOT click the button what color will "topButton" be when this program finishes running?
daser333 [38]

Answer:

Blue

Explanation:

See attachment for missing code snippet.

The actions to be executed are on lines 1, 2, 4 and 5. These actions are:

1. Set background to red

2. Set background to blue

4. Set background to green

5. Set background to orange

Instructions at line 4 and 5 will be executed if the user clicks the button.

From the question, we understand that the user does not click the button.

This implies that the instructions at 4 and 5 will be ignored.

So, we are left with:

1. Set background to red

2. Set background to blue

1. The background colour of the button will be set to red

2. The background colour of the button will be set to blue, overwriting the instruction at (1).

Hence:

<em>B. blue is correct</em>

5 0
3 years ago
How do you create a logo on Adobe illustrator
artcher [175]
Idk idk idk idk if dub
7 0
3 years ago
Select the correct answer from each drop-down menu. Susan has decided to develop a website on a WYSIWYG editor. What kind of set
Natalija [7]

Answer:

the ans is b

Explanation:

i did it on edge

8 0
3 years ago
Install hardware, install software, and convert data are the three steps found in the _____. Select one:
aev [14]

Answer:b)Conversion plan.

Explanation:Conversion plan is type of plan in which the the technique is followed by converting the data from the present system to another system's hardware and software surroundings.

The technique follows three basic steps in the conversion plan is software installation plan, hardware installation plan and conversion of data. Thus the correct option is option(b).

3 0
4 years ago
PLZ ANSWER ASAP WILL GIVE BRAINLYEST
malfutka [58]

Answer: Navigation

Explanation:

the Navigation pane

3 0
2 years ago
Other questions:
  • What are the two major categories of computer software? word-processing software and spreadsheet software applications software
    13·1 answer
  • Using Amdahl’s Law, calculate the speedup gain of an application that has a 60 percent parallel component for (a) two processing
    11·1 answer
  • Do you think that feedly will help you create an effective personal online learning environment? Why or why not?
    15·1 answer
  • Peter wants to protect a confidential document by using a password. He wants to use an asterisk and an ampersand symbol in his p
    10·1 answer
  • What is a prototype ?
    9·1 answer
  • During the _____it is important to figure out how the test will be scored.
    9·1 answer
  • I’ll mark brainliest if correct
    10·1 answer
  • Do a comment if u hate me.or think im d.U.m b. add a answer if u dont care. thank all the asnwers or report for saying i dont ex
    9·1 answer
  • What would be printed to the screen when the following program is run?
    11·1 answer
  • Pictures in the _____ gallery give the appearance of a physical object, such as water drops or sand, that can give your presenta
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!