RosettaCodeData/Task/Factorial/PostScript/factorial-2.ps
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

6 lines
190 B
PostScript

/fact {
1 % initial value for the product
1 1 % for's start value and increment
4 -1 roll % bring the argument to the top as for's end value
{ mul } for
} def