PROCEDURE FACTORIAL(FACT,X%->FACT) IF X%>1 THEN FACTORIAL(X%*FACT,X%-1->FACT) END IF END PROCEDURE