2 (default-space:space-address <- new space:literal 30:literal)
3 (n:integer <- next-input)
6 (zero?:boolean <- equal n:integer 0:literal)
7 (break-unless zero?:boolean)
10 ; return n*factorial(n-1)
11 (x:integer <- subtract n:integer 1:literal)
12 (subresult:integer <- factorial x:integer)
13 (result:integer <- multiply subresult:integer n:integer)
14 (reply result:integer)
18 (1:integer <- factorial 5:literal)
19 ($print (("result: " literal)))
20 (print-integer nil:literal/terminal 1:integer)
21 ($print (("\n" literal)))