In shell scripting how to find factorial of a number?
echo Enter Number read num fact=1 for ((i=1;i<=num;i++)) do fact=$(($fact*$i)) done echo $fact