144k views
0 votes
Which statement best describes the logic in a while loop?bringing an umbrella to determine if it is rainingbringing an umbrella regardless if it is rainingdetermining if there is rain before bringing an umbrelladetermining if an umbrella is available in case of rain

User Mpacer
by
5.0k points

1 Answer

5 votes

Answer:

B. If it is raining, bring an umbrella regardless.

Step-by-step explanation:

Here is the code syntax:

while _ = true

print(rain)

In short words, this syntax is basically saying while a condition is true, do this. "This", is the function run under the true condition. For while loops to work, at least one condition of anything must be true.

  1. Hope this helps!
  2. If that's the case, please give thanks!

User PhillFox
by
4.4k points