Type in the words(s) to search for:

    Mark results
      Userbooster Help

      do..while Statement

      Executes a statement repeatedly until the test becomes false (0).

      do statement while ( test );

      Arguments

      test

      Boolean expression. If the test is true, the statement is executed; otherwise, the loop terminates.

      statement

      One or more simple or compound statements. This argument is optional.

      Example

      do
      {
          y = f ( x );
          x --;
      } while( i > 0 )