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

1 Answer

6 votes

Answer:

while (quantity >= 50)

Step-by-step 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)

User Joris Limonier
by
5.7k points