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
erica [24]
3 years ago
10

Given positive integer numinsects, write a while loop that prints that number doubled without reaching 100. follow each number w

ith a space. after the loop, print a newline. ex: if numinsects = 8, print
Computers and Technology
1 answer:
hichkok12 [17]3 years ago
3 0
Hi,

the program is as follows
___________________________________________________________


import java.io.*;
class doubleval

  {
     public static void main()throws IOException   
     {

       DataInputStream dt=new DataInputStream(System.in); 

System.out.println("Enter NUMBER WHOSE DOUBLE U WANT TO                                           PRINT");       
            int n=Integer.parseInt(dt.readLine()); 

                  for(int i=n;i<=100;i=2*i)       
                    {           
                         System.out.println(i);       
                            }   
            }
}


           
You might be interested in
1. The correct definition of ergonomics is: (a) The correct way to position your feet when in front of electronic equipment. (b)
fgiga [73]

Answer:

I'd assume it's C.

Explanation:

hope this helps!

6 0
3 years ago
................,...
docker41 [41]

Answer:

there's a comma

Explanation:

after all those periods

6 0
4 years ago
Why is it important for element IDs to have meaningful names
Anit [1.1K]

Answer:

  to remind of purpose and use

Explanation:

When a data item has a meaningful name, the name can be a reminder of the purpose and use of the item. It can also be suggestive of the range of legitimate values. It also makes error-checking easier.

If the name of it is not meaningful, this information about the item must be found in a dictionary somewhere, often a time-consuming or difficult project. Using elements with non-meaningful IDs provides opportunities for error and confusion--not something that is generally wanted.

6 0
3 years ago
A company database needs to store information about employees (identified by ssn, with salary and phone as attributes), departme
seropon [69]
I’m confused what are you asking
5 0
3 years ago
If a front passenger over 18 is not restrained by a seat belt, he or she is legally at fault. A. True B. False
inna [77]
The answer is A, True
7 0
3 years ago
Other questions:
  • John just bought a used iPad from a friend who had lost the charging cable. John notices that the cable is like the charging cab
    11·2 answers
  • Gina is upgrading your computer with a new processor. She installs the processor into your motherboard and adds the cooling syst
    5·2 answers
  • My 2 in 1 laptop/tablet
    13·1 answer
  • Computer a has an overall cpi of 1.3 and can be run at a clock rate of 600mhz. computer b has a cpi of 2.5 and can be run at a c
    11·1 answer
  • What is the simplest way to permanently get rid of an unwanted file? A. Cancel the file. B. Go to the Start menu and then delete
    14·1 answer
  • Robert's employer has agreed to pay half the tuition for Robert to complete his college degree. This benefit is known as what?
    7·2 answers
  • Rick is teaching a photographic worship about sun color and image. He shows the students a few images to teach them about contra
    12·1 answer
  • How do you give brainlest things out?
    14·2 answers
  • 8.
    9·1 answer
  • Display the desktop without minimizing or closing any windows.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!