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
solong [7]
3 years ago
5

in java how do I write a do-while loop that continues to prompt a user to enter a number less than 100, until the entered number

is actually less than 100. End each prompt with newline Ex: For the user input 123, 395, 25, the expected output is:
Computers and Technology
1 answer:
jekas [21]3 years ago
3 0

Answer:

do{

             Scanner s1 = new Scanner( System.in);

              int a = s1.newInt();

             System.out.println(a);//println will automatically add a newline after each number input.

        }while(a<100);

And the program will terminate on first input itself as 123 is more than 100.

Explanation:

Please check the answer section.

You might be interested in
What will Jason need to assemble a microcomputer and connect it to memory chips
lisabon 2012 [21]

会いたいんだ

愛したいんだ

その愛がもう今見たいんだ

会いたいんだ

愛したいんだ

今かっさらう So watch out now!

6 0
3 years ago
To add text to a slide when using presentation software, you need to add a text box. To add a text box, click the Text Box butto
Amiraneli [1.4K]

The answer is the second choice, "Insert."


On Microsoft Powerpoint, when you click on the insert tab you can find the text box button.

3 0
3 years ago
Read 2 more answers
A _____ provides a file-system interface which allows clients to create and modify files.
stiv31 [10]
The correct answer is a file-server system. Hope this helps!
3 0
4 years ago
The term BIOS stands for
iren2701 [21]
Basic Input-Output System
8 0
3 years ago
How many different Microsoft Windows file types can be infected with a virus?
vagabundo [1.1K]
Phishing, scam, Fraud, just to get to hack your computer.
6 0
3 years ago
Other questions:
  • A __________ network is good for connecting computer clusters.
    13·2 answers
  • Can you think of a shortcut for calculating the network addresses of consecutive /30 subnets?
    9·1 answer
  • By default, the Windows desktop displays
    6·1 answer
  • Five batch jobs. A through E, arrive at a computer center at almost the same time. They hav e estimated running times of 10, 6,
    14·1 answer
  • If one department chair—a professor—can chair only one department, and one department can have only one department chair. The en
    13·1 answer
  • What is done to conserve energy while electricity is being transported?
    9·1 answer
  • What’s an input Device
    7·2 answers
  • Write an application that displays the sizes of the files lyric1.txt and lyric2.txt in bytes as well as the ratio of their sizes
    15·1 answer
  • What is a key differentiator of Conversational Artificial Intelligence (AI)
    11·1 answer
  • Create a function called sphereVolume that determines the volume of a sphere with a given radius and prints the result to the sc
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!