#!/bin/csh -f
#!/bin/csh -xvf
#factorials, done using recursion
#This version uses the returned value!!
if ( $1 <= 0 ) then
    exit 1
else
    @ t = $1 - 1
    $0 $t
    @ fact = $1 * $status
    echo $fact
    exit $fact
endif
