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

Dave is helping his grandmother make trail mix. His grandmother asks him to add 1/5 cup of fruit for every 1/3 cup of nuts. To satisfy his grandmothers request
How do I find the side lengths for this triangle if only one side and ond angle is given? Plz help
Three consecutive integers have a sum of 177 . Find the integers.
A narrator who is also a character in the story will be telling the story from the _____ point of view. first-person second-person third-person
Simplify (4.5)(5)(−2). (1 point) 45 4.5 −4.5 −45
write 52 thousandths in scientific Notation
What was the cheapest price for admission into london theaters?
Estimate the circumference of a circle that has a radius of 11 m.
Each chair in an auditorium is 1.8 feet wide. If there are 24 chairs in each row, about how long is a row?
SOMEONE PLZ HELP ME OUT ILL GIVE 30pts Match the vocabulary word with the correct definition. 1. obstacles or difficulties that prevent exercise -regular exer