Do While Loop

int count = 0;
do {
  System.out.print(count);
  count++;
} while (count < 5);
// Outputs: 01234
Comments