<code>while (i < 10) { ... }</code> can be refactored to a <code>for</code> loop as
- A
for (i = 0; i < 10; ) { ... }
- B
for (; i < 10; ) { ... }
- Ccheck_circle
All of these (with the same body)
- D
for (int i = 0; i < 10; ) { ... }
Explanation
All three forms compile; semantics depend on whether i is already declared.