Group: | Flow Control |
See also: | do until while |
Function: | endo | |
Description: | endo end a while loop. while has to be followed by an endo. |
Usage: | while (cond) <xplore commands> endo |
proc(j)=factorial(x) if(x>1) j=1 while(x>=2) j=j*x x=x-1 endo else j=x endif endp factorial(5)
Contents of j