rishikaraj2403
rishikaraj2403 rishikaraj2403
  • 25-06-2021
  • Computers and Technology
contestada

which of the following indicates that the loop should stop when the value in the quantity variable is less than the number 50​

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 30-06-2021

Answer:

while (quantity >= 50)

Explanation:

Required

Stop when quantity is less than 50

To do this, we make use of a while statement and the syntax is:

while (condition){ }

If the loop should stop when quantity is less than 50; then it means the loop would continue when quantity is greater or equal to 50

So, we have:

while (quantity >= 50)

Answer Link

Otras preguntas

Ms. Pratt’s students were surveyed in their favorite subject. One fifth prefer math 0.35 prefer social studies, and 45% prefer reading.
Which graphical display is best used to organize numerical data in ascending order? scatter plot line graph box-and-whisker plot stem-and-leaf plot
I need help please!!!!?
The volume of a gas at 27.0c and 0.200atm is 80.0 ml .what volume will the same gas sample occupy at STP?
Piano tuners tune pianos by listening to the beats between the harmonics of two different strings. When properly tuned, the note A should have a frequency of 44
I need help with this answer!!
What is ATP and cartiac arrest?
I NEED HELP IN 2 QUESTIONS, PLEASE HELP AND SHOW YOUR WORK! Which expression best represents the area of the rectangle? ( The longer side is x+12, and the short
What is the midpoint of the vertical line segment (5,4) and (5,-5)
Please I really need help on these