while( test ) expression;

The while statement. Expression test must be a boolean expression. Expression expr stands for a single statement or a block of statements.


Example


while( 0<x and x<100 ) {

   println( x, " ", x*x );

   s = s+x;

}