--- loncom/homework/templates/sampleexternal.problem 2010/12/20 19:18:14 1.2 +++ loncom/homework/templates/sampleexternal.problem 2015/06/03 10:25:12 1.7 @@ -1,9 +1,10 @@ + -Write a Perl subroutine called factorial, which returns the factorial of its argument, e.g. &factorial(17)=17!. +Write a Perl subroutine called factorial, which returns the factorial of its argument, e.g. &factorial(17)=17!. You can use the +boolean function &negative(number), which returns true if the argument is negative. Sample code for an evaluation script can be found here. - - + +