<code>for (int i = 0; i < n && !done; i++)</code>
- Acheck_circle
Loops while both conditions hold
- B
Compile error
- C
Loops indefinitely
- D
Runs once
Explanation
Combined condition with <code>&&</code>.
AP Computer Science A· difficulty 4/5
<code>for (int i = 0; i < n && !done; i++)</code>
Loops while both conditions hold
Compile error
Loops indefinitely
Runs once
Explanation
Combined condition with <code>&&</code>.
Want 10 more like this — adaptive to your weak spots?