read -p "Enter the number : " numberfact=1while [ $number -gt 1 ]dofact=$((fact * number)) #fact = fact * numnumber=$((number - 1)) #num = num - 1doneecho "Result:" $fact
read -p "Enter the number : " numberfact=1while [ $number -gt 1 ]dofact=$((fact * number)) #fact = fact * numnumber=$((number - 1)) #num = num - 1doneecho "Result:" $fact
0 Comments