[upon request] Shell program to find factorial
echo "Enter the number "
read n
fact=1
for((i=1;i<=n;i++))
do
fact=`expr $fact \* $i`
done
echo factorial $fact
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment