What will be the output of a while loop if its condition is initially false?

  • The loop will execute indefinitely
  • The loop will execute normally
  • The loop will execute once
  • The loop won't execute
If the condition of a while loop is initially false, the loop won't execute at all. It will skip the loop body and move on to the next code outside the loop.
Add your answer
Loading...

Leave a comment

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