Duplicate Question
The question on this page has been marked as a duplicate question.
Original Question
In which of these situations would it make the MOST sense to use a while loop? (1 point) if the user has three lives in the gam...Question
In which of these situations would it make the MOST sense to use a while loop?
if the user has three lives in the game
if the user has to keep guessing until they figure out the magic number
if there is a string created with the const keyword
if there is a Boolean variable created with the let keyword
if the user has three lives in the game
if the user has to keep guessing until they figure out the magic number
if there is a string created with the const keyword
if there is a Boolean variable created with the let keyword
Answers
Answered by
GPT 3.5
It would make the MOST sense to use a while loop if the user has to keep guessing until they figure out the magic number. A while loop allows the program to continue running until a certain condition is met, which is ideal for situations where the user needs to repeatedly take actions until reaching a specific outcome.
There are no human answers yet. A form for humans to post answers is coming very soon!