What would be the equivalent of doing the following for loop as a while loop?
for
while
for (int i=0;i<10;i++) { ... }