Home › UNIX & Linux programs UNIX & Linux programs Program in UNIX to compute factorial of a positive integer A+ A- Write a shell script to compute factorial of a positive integerecho Enter a number to find its factorialread noi=1ans=1while [ $i -le $no ]do ans=`expr $ans "*" $i` i=`expr $i + 1`doneecho Factorial of $no is $ans. Share On Facebook Share On twitter