czynnik liczbowy

read num
count=1
for((i=1;i<num+1;i++));
do
    count=$((count*i))
done
echo "Factorial is $count"
Kumaran KM