while



Hi,

(similar to previous for)

Here are 2 examples of using while in Maxima :

--------- first ------------------
(%i6) r:2;
(%o6) 2
(%i7) while r<200 do disp(r:r*r);
4
16
256
(%o7) done
------------second -----------------
(%i8) rmax:200;
(%o8) 200
(%i9) while r<rmax do disp(r:r*r);
(%o9) done
---------- end------------------

First works, second not.
Is it something wrong with this second example ?

Regards

Adam