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
Black_prince [1.1K]
3 years ago
5

Input an int between 0 and 100 and print the numbers between it and 100, including the number itself and the number 100. If the

number is less than or equal to 0, or greater than or equal to 100 print "error". Print 20 numbers per line.
Language: Java
Computers and Technology
1 answer:
Murrr4er [49]3 years ago
6 0

import java.util.Scanner;

public class JavaApplication42 {

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       int count = 0;

       System.out.println("Enter an integer between 0 and 100");

       int num = scan.nextInt();

       if (num <= 0 || num >= 100){

           System.out.println("error");

       }

       else{

           while(num <= 100){

               if (count == 20){

                   System.out.println("");

                   count = 0;

               }

               else{

                   System.out.print(num+" ");

                   count++;

                   num++;

               }

           }

       }

   }

   

}

I hope this helps!

You might be interested in
PLEASE ANSWER THIS IM IN A QUIZ
Irina18 [472]

Answer:

B. hardware problem.

Explanation:

A monitor can be defined as an electronic device that is used to graphically display data (informations) for users working on a computer.

Simply stated, a monitor is a hardware device that serves as an output source for a computer system.

If images around the edges of a monitor do not look right, the computer might have a hardware problem because the monitor of a computer is a hardware device. Common hardware problems associated with computer monitors are improper visual display, flickering, vertical lines, blotches, ink spots, random shutdown etc.

8 0
3 years ago
Read 2 more answers
An organized file title helps save time locating files, communicates professionalism, and lets us know the file is most likely N
Shkiper50 [21]

An organized file title helps save time locating files, communicates professionalism, and lets us know the file is most likely not a virus: True.

A file can be defined as a computer document or resource which avails an end user the ability to store (record) data as a single unit on the storage device of a computer system.

Generally, all files are identified and organized based on the following criteria:

  • Name (Title).
  • Format (Type).
  • Size.
  • Date.
  • Status.
  • Owner.
  • Permission.

Based on the aforementioned criteria, an organized file title would help to save time locating files, communicates professionalism, and lets us know the file is most likely not a virus because it must have been scanned with an antivirus utility.

Read more: brainly.com/question/23728214

6 0
3 years ago
What prefix describes a mass that is 1000 times smaller than a gram
yanalaym [24]
Milli as in milligram
4 0
3 years ago
Read 2 more answers
What is the Rocker-Bogie System?
Dovator [93]

Answer:

The Rocker-Bogie System is the suspension arrangement developed in 1988 for use in NASA's Mars Rover Sojourner and which has become NASA's favored design for rovers.

Hope that this helps!

4 0
3 years ago
Rayna wants to create an organizational chart in her document. Which of the following commands should she click in the Illustrat
WITCHER [35]
CHART
that’s my answer
7 0
3 years ago
Other questions:
  • What term is used to describe the harassment of computer users through various forms of internet communications?
    5·1 answer
  • Write a program that creates a dictionary containing the U.S. states as keys and their capitals as values. (Use the Internet to
    10·1 answer
  • What does the word "e-business" mean?
    11·2 answers
  • You can send emails to individuals from your address book.<br><br> True<br> False
    12·1 answer
  • You are in charge of an event at work. You want to plan and schedule events and resourse. What type of software should you use?
    14·2 answers
  • Which U.S. government agency first funded the development of the Internet?
    12·2 answers
  • When you start a new blank document, you begin typing at the
    6·1 answer
  • I need help with the last question pleasee help me guys .
    11·2 answers
  • Which of the following statements is TRUE of a peer-to-peer network?
    10·1 answer
  • Name:
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!