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
lana66690 [7]
4 years ago
14

Write a WHILE loop that lets the user enter a number.

Computers and Technology
1 answer:
balandron [24]4 years ago
7 0

Answer:

while True:

   number = int(input("Enter a number: "))

   product = number * 10

   if product > 100:

       break

print(str(product))

Explanation:

Create a while loop that iterates until a specific condition is created inside

Ask the user for the input

Multiply the input and put the result in product

Check if the product is greater than 100. If it is, stop the loop using break keyword

When the loop is done, print the product

You might be interested in
Maria wants to create a simple logo for her new flower shop. She would like to use the computer to create this logo. Maria shoul
xenn [34]

B) graphics software

5 0
3 years ago
Read 2 more answers
Write and application that reads five integers from the user and determines and prints the largest and the smallest integers. Us
mixas84 [53]

Answer:

#include <stdio.h>  

#include <limits.h>  

 

/* Define the number of times you are going  

  to ask the user for input. This allows you  

  to customize the program later and avoids the  

  hard coding of values in your code */  

#define NUMVALS 5  

 

int main(void)  

{  

   int i = 0;  

   int curval = 0;  

   /* Set your initial max as low as possible */  

   int maxval = INT_MIN;  

   /* Set your initial min as high as possible */  

   int minval = INT_MAX;  

 

   /* Loop through and ask the user for the defined  

      number of values */  

   for (i = 0; i < NUMVALS; i++)  

   {  

       /* Ask the user for the next value */  

       printf("Enter the next value: ");  

 

       /* Get the next value from the user */  

       scanf("%d", &curval);  

 

       /* Check to see if this is our biggest or  

          smallest value yet */  

       if (curval > maxval)maxval = curval;  

       if (curval < minval)minval = curval;  

   }  

 

   /* Output the results */  

   printf("The smallest value entered was: %d \n", minval);  

   printf("The largest value entered was: %d \n", maxval);  

 

   /* End the program */  

   return 0;  

}

Explanation:

5 0
3 years ago
Anyone understand coding? Please Help! Thank you! :)
Damm [24]
Coding is like doing somethin i already know but look u can search it up in Google trust me
7 0
4 years ago
People are not interested in what you do _____. I think, more and more, they're not even really interested necessarily in how yo
Ymorist [56]

Incomplete question. However, I inferred you are referring to the best word that likely completes the blank space.

Answer:

<u>or don't do;</u>

Explanation:

So, this statement could rightly read;

"People are not interested in what you do<u> or don't</u>. I think, more and more, they're not even really interested necessarily in how you look on paper, like a...."

3 0
3 years ago
The most commonly used traffic control devices used in road construction and maintenance work areas are
svet-max [94.6K]
The answer that best completes the statement above is this: <span>signs, barricades, drums, cones, tubes, flashing arrow panels, and flag individuals. The main purpose of these traffic control devices is to signal the drivers to stop or to slow down and to change lanes most especially in areas that are undergoing construction.</span>
3 0
3 years ago
Other questions:
  • Gn to be printed at a commercial printer. Which main ink type's exact color appearance is determined by the printer and requires
    13·1 answer
  • What does the "e" in eSATA stand for?
    13·2 answers
  • Why should you follow up with your interview after a job interview
    15·2 answers
  • Which app is used to synchronize data among iOS devices and Windows desktops?
    7·2 answers
  • The document theme does not determine the appearance of the styles. true or false
    13·2 answers
  • I’m turning my Pinterest into a professional account what should be my user name please try to think of a good name and not just
    11·2 answers
  • The number of swappings needed to sort the number 8, 22, 7, 9, 31 in ascending order, using bubble sort is
    9·1 answer
  • Can some one help me answer this question plz
    8·1 answer
  • 5.5 Learning Objective: To demonstrate that the student understands the definition of Big O. To demonstrate that the student und
    11·1 answer
  • 3. It is important to make certain that your employees are aware of the work ethic
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!