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

63 = -3(1 - 2n) what does n equal?
-18-6k=6(1+3k)...what is the value of k
the heights, x cm, of the 10 girls in an athletics team are such that sum of x (∈x) =1550 and ∈x∧2= 241250a- find the mean and varianceb- one girl, who is 173cm
Le mariage est l'une des choses les plus importantes dans la vie qui façonne la vie personnelle ainsi que la carrière. C'est un lien qui établit une relation à
what are they 1.) input devices2.) output devices3.) processing devices can you please answer  all of them please.
what's 0.003 is 1/10 of what?
Who discovered America? Christopher Columbus, Amerigo Vespucci, or Leif Ericsson? Explain who and why not the other two. Thank you.
triangular region at the mouth of a river: it is rich in minerals which help to enrich the soil for farming
How did the patriots feel about the Navigation Acts
Where is the weather most likely clear and dry