Which loop condition will cause the loop to terminate immediately? while(?)

  1. true
  2. false
  3. i > 0
  4. i == 1
Correct answer false

Explanation

while(false) means the loop won’t execute at all.

Update: Admin added a tag on this question

Topics

By Admin · · 25 views