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

A person throws a ball upward into the air with an initial velocity of 15.0 m/s. Calculate (a) how high itgoes, and (b) how long the ball is in the air before i
A map measuring 60 cm by 25 cm is reduced twice in the ratio 3:5. Calculate the final dimensions of the map.
what does tres bien mean in French
the completion times for three runner in a 100-yard dash are 9.75 seconds,9.7seconds,and 9.675 seconds. which is the winning time?
Least from least to greatest 1/5, 0.1, -1/2, -0.25, -0.3
whats 4x-7=29(to make x the subject)
a ratio is a rate sometimes, always, or never true ?
Improper fraction as decimal
All the knowledge and values shared by a society are a part of its _____. government social class culture economy
What is the midpoint of 0.01 and 0.02