#-----------------------------------------------------------------------------
#
#            test loop control statements
#
#  irisplot has some very simple loop statements, they are
#   for(Ini_vari; Condition; Increment) { Body}
#   while(Condition) { Body}
#   do {Body} while(Condition)
#
#  Never use dummy variable name as variables in the LOOP statements,it will
#  either abort the loop or cause an infinite loop. To see what is the 
#  current dummy variables, type 'show dummy'.
#
#-----------------------------------------------------------------------------

for(i=0;i<10; i=i+1) {print i; !echo i = $i;}

i=0;
do{ !echo i**2 = ; print i*i; i=i+1} while(i<10);

i=0;
do { surface$i= sur{[sin($i*x)*cos($i*y)]}; i=i+1} while(i<10);

i=0;
while(i<10) { f$i(x) = sin($i*x) ; i = i+1 };


show f;
show g;

quit;

#-----------------------------------------------------------------------------
