The loop that first checks the condition and then executes its body is called ______.

  • do-while
  • for
  • switch
  • while
The loop that first checks the condition and then executes its body is called a "for loop." In a for loop, you specify the initialization, condition, and increment or decrement all within the loop header. This allows for precise control over loop execution.
Add your answer
Loading...

Leave a comment

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