A ______ statement can be used as a control structure to repeatedly execute a block of code as long as a particular condition remains true.

  • For
  • If
  • Switch
  • While
In programming, a "while" statement is a control structure that creates a loop. It repeatedly executes a block of code as long as a specified condition remains true. This is useful for scenarios where you want to perform an action multiple times until a certain condition is met.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *