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
ss7ja [257]
3 years ago
15

Print out the value and double it (multiply by 2). Continue printing and doubling (all on the same line, separated by one space

each) as long as the current number is less than 1000, or until 8 numbers have been printed on the line.
Computers and Technology
1 answer:
fiasKO [112]3 years ago
7 0

Answer:

value=int(input("Enter the value from where the user wants to starts: "))#Take the value from the user.

i=1#intialize the value of a variable by 1.

while(value<1000) and (i<9):#while loop which prints the value.

   print(value,end=" ")# print the value.

   value=value*2#calculate the value to print.

   i=i+1#calculate the value for the count.

Output:

If the user enter 5, then the output is : "5 10 20 40 80 160 320 640".

If the user enter 5, then the output is : "3 6 12 24 48 96 192 384".

Explanation:

  • The above code is in python language, in which the first line of the program is used to render a message to the user, take the input from the user and store it into value variable after converting it into an integer.
  • Then the loop will calculate the double value and then it prints the value with the help of print function.
  • The end function puts the spaces between numbers.
You might be interested in
In Microsoft Windows, which of the following typically happens by default when a file is "double-clicked"
Elenna [48]
Depending on the type of file, it normally runs or opens.
4 0
3 years ago
Read 2 more answers
Which of these is an example of a system?
lisov135 [29]

Answer:

force and a single particla of matter

4 0
3 years ago
An excel file called “student_gpa” is opened. What does the funnel next to “GPA” indicate
Ivan

Answer is A. The data has been filtered

The funnel in Excel lets you know that there is a filter in place on the columns. It is a filter icon. By default, any filtered column in Excel gets a little funnel icon on the top row as shown in the image attached. Once this funnel symbols is clicked, it gives you options to filter using several criteria.

6 0
3 years ago
Manufacturing changes what materials into useful products
Vlad [161]

Answer:

Raw Materials

Explanation:

Raw materials are the resources used by a company to produce its finished goods and products. some common raw materials are cocoa for beverages, limestone for cement etc

3 0
3 years ago
suppose task c has two predecessor tasks: task a and task b. task a ends on may 8 and task b ends on may 13. when can task c beg
san4es73 [151]

Suppose task c has two predecessor tasks: task a and task b. task a ends on may 8 and task b ends on may 13. The time that task c can  begin is may 14.

<h3>What does task mean in its other sense?</h3>

It is seen as Assignment, chore, duty, job, and stint are a few examples of common synonyms for task. Task implies work that is imposed by a person in authority, an employer, or circumstances, even though all of these words mean "a piece of work to be done."

Note that you may be asked to write a letter, a feature article, an editorial, or a speech. who you're pretending to write to in response to the prompt. Hence starting by on the 14th is advisable.

Learn more about task  from

brainly.com/question/12831236
#SPJ1

8 0
1 year ago
Other questions:
  • What is computer virus?
    8·1 answer
  • Which type of network cover a large geographical area and usually consists of several smaller networks, which might use differen
    5·1 answer
  • Never mind I got it
    8·2 answers
  • The systems development life cycle (SDLC) is the overall process of developing, implementing, and retiring information systems t
    9·1 answer
  • In which of the following scenarios would it be best to use a for loop?
    6·1 answer
  • What is the disadvantages of using proprietary software
    10·2 answers
  • Convert 578.2 into hexadecimal​
    9·1 answer
  • Your assignment is to write an assembly language program which read a string and print it in uppercase. This program asks the us
    11·1 answer
  • How many of you got the right answer from this app​
    8·1 answer
  • What is the positional weigh of the digit 7 in the octal number 7642 ?​
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!