14. Conditional loops

The while statement can be used to process the same part several times, as long as the condition evaluates to true. Example:

(i=1) while (i <= 10) {(i**2) (i=i+1)}

evaluates to

1 4 9 16 25 36 49 64 81 100