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
Elanso [62]
3 years ago
9

write a loop that reads positive integers from standard input, printing out those values that are greater than 100, each followe

d by a space, and that terminates when it reads an integer that is not positive. declare any variables that are needed. assume the availability of a variable, stdin, that references a scanner object associated with standard input.
Computers and Technology
1 answer:
oksian1 [2.3K]3 years ago
6 0

The code below is in Java.

It uses a do-while loop to get the inputs from the user, checks if they are greater than 100 using if-else structure, and appends them to the result String along with a space

Comments are used to explain the each line.

The output can be seen in the attachment.

//Main.java

import java.util.Scanner;

public class Main

{

public static void main(String[] args) {

    //Scanner object to be able to get input from the user

    Scanner input = new Scanner(System.in);

   

    // Declaring the variables

    int number;

    String result = "";

   

    //Creating a do-while loop that iterates while number is greater than 0

    //Inside loop, get the number and check if it is greater than 100

    //  If it is, append the number to the result String along with a space

    do{

        number = input.nextInt();

        if(number > 100)

            result += number + " ";

    }while(number > 0);

   

    //Print the result

 System.out.println(result);

}

}

You may check a similar one at:

brainly.com/question/15020260

You might be interested in
Which Windows feature allows secure printing over the Internet?​
ludmilkaskok [199]

Answer:

You need to install Windows 7 over an existing version of Windows.

Explanation:

Brainiest??

3 0
3 years ago
Define generation of computer ​
steposvetlana [31]

Answer:

The generation of computer is define as the devlopment in computer hardware/software,their processing speed and their language.

I HOPE IT HELP YOU

5 0
2 years ago
Which of the following is the 1's complement of 10?
OverLord2011 [107]
Flip 10 and you get 01 then you add 1 to it:
1
01
+ 1
-----
1 1

So, C. 11
6 0
3 years ago
Read 2 more answers
You type. The word "weather" when you ment "whether" when will the writer or word flag this as a misspelling or a grammar proble
xxTIMURxx [149]
Most likely depends on the situation
8 0
3 years ago
-Another question involving microsoft word-
Alexus [3.1K]
I'm PRETTY, certain it's C.
5 0
3 years ago
Other questions:
  • Please help!
    10·1 answer
  • Given a floating point variable fraction, write a statement that displays the value of fraction on the screen. Do not display an
    13·1 answer
  • Which feature of Microsoft power point make tiles fly in on the clock of a mouse
    8·1 answer
  • In cell R9, enter a formula using the AVERAGEIF function to determine the average number of years of experience for lifeguards.
    12·1 answer
  • FINISH THE SENTENCE <br><br> buzzfeed____reddit_____
    5·1 answer
  • PLEASE HELP!!!!!!!!!!!
    15·2 answers
  • Join for a pack battle loud microphone.
    10·1 answer
  • What is the purpose of the Hide Slide feature in a presentation program?
    14·1 answer
  • Data bars are a form of ________.
    8·2 answers
  • What dictionary operation can you use to remove all the keys within the dictionary-named contacts?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!