PROC SQUARE_ROOT X
{ An ICL procedure to print the square root of a number, }
{ prompting if the number is not given on the command line }
IF UNDEFINED(X)
INPUT 'Give the value of X: ' (X)
ENDIF
PRINT The Square Root of (X) is (SQRT(X))
END PROC
Note that only trailing parameters may be omitted
ICL The Interactive Command Language for ADAM