Factorial using Linux shell script in Ubuntu

echo enter number:
read n
fact=1
while [ $n -gt 1 ]
do
fact=`expr $fact \* $n`
n=`expr $n - 1`
done
echo factorial is $fact