It is similar to a while loop, except that it tests the condition at the end of the loop body. The Do - While loop executes the loop once irrespective of whether the condition is true or not.
int[] numbers = new int[] { 6, 7, 8, 10 };
// Sum values from the array until we get a total that's ...