do expr; while( test );

The do-while statement. Expression test must be a boolean expression. Calcugator does not use the C/C++ convention that treats 0 as false and a number different than zero as true. Expression expr can be a simple expression or a block of expressions.



Example


do {

   i++;

   if( i==5 ) break;

   println( "i = ", i );

}

while( i<10 );