answersLogoWhite

0

#declare value of product

product = 0

#while loop in python

#while (test condition) :

# statements (s)

while product < 100:

#prompt for a user to enter a number

n1 = input ("Enter a number: ")

#multiply n1 times 10

product = n1 * 10

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Design a while loop that lets the user enter a number the number should be multiplied by 10 and the result stored in a variable named product?

Define number_in, product integer; Set product = 0; While product &lt; 100 set product = number_in * 10; accept (input) number_in End_while


What button lets you copy text into a cell instead of inserting the next higher number?

You can type whatever you want into a cell. You do not have to enter numbers.


What process lets food enter the cells of an organism?

Absorption


Where can you get a program that lets you design your own Pokemon game from a Rom?

Yes


Is there a website that lets you design your own rubik's cube then buy it and have it delivered to you?

no


Design a While loop that lets a user enter a number?

The only reason to use a "while" loop is to reject invalid data. In pseudocode, it is something like this: do { (ask for number - store to variable "x") } while ("x" is invalid) The details within parentheses will depend on the programming language. The condition for the "while" also depends on the condition you want to fulfill; for example, you might reject a number that is negative or zero. Note that this uses a "while" that is evaluated at the end; in this case, the loop is executed at least once. If the condition is more complicated to evaluate - for example, the data is input as text and you need to reject non-numeric input - you can do additional processing within the loop, and set a variable "valid" that will be true if the input is valid. In that case, the last line will simply change to: ... while (!valid)


When can you enter the park in lets ride friends forever?

You can enter the park in Let's Ride: Friends Forever at 8:00 AM in the morning.


Where can I find plans or designs for decks and porches?

There is an "interactive CD ROM" that lets you design your decks and porches and you can purchase them from DecksUSA, which is an online website. They ahve a phone number where you can call them and and ask questions about the CD and how you can design your own deck and porch.


How do I contact my local army recruiter?

This U.S. Army website lets you enter your zip code and get the address and phone number of a recruiter near you: http://www.goarmy.com/contact/find_a_recruiter.jsp


What in a plant cell lets things enter and leave the nucleus?

The nuclear membrane.


What structure lets certain things enter and leave in animal cell?

Mitochondria


Any hardware component that lets you enter data?

do your own test, idiot.