Nalini1998 / Project_Public

MIT License
2 stars 0 forks source link

Which statement is true about while loops? #553

Closed Nalini1998 closed 1 year ago

Nalini1998 commented 1 year ago

Which statement is true about while loops?

A. while loops evaluate a condition for however long it’s true and the looping stops when the condition is false.

B. while loops will run at least once, then will run again if their condition is true.

C. while loops always loop over a code block a known amount of times.

D. while loops only run while the condition is false.

Nalini1998 commented 1 year ago

I chose A. while loops evaluate a condition for however long it’s true and the looping stops when the condition is false.