factorielle d'un nombre de bash
read num
count=1
for((i=1;i<num+1;i++));
do
count=$((count*i))
done
echo "Factorial is $count"
Kumaran KM
read num
count=1
for((i=1;i<num+1;i++));
do
count=$((count*i))
done
echo "Factorial is $count"