write a program in shell script to find factorial of a number
#Bash script to find factorial of a number
echo -n "Enter a number: "
read number
factorial=1
for(( i=1; i<=number; i++ ))
do
factorial=$[ $factorial * $i ]
done
echo "The factorial of $number is $factorial"
Also in C++:
- ubuntu lemp
- linux speed test
- git basic commands
- shell commands windows
- npm default init
- git add command
- Install Lumen CSV
- print in shell script
- squash commit history git
- stremio: Depends: libfdk-aac1
- calculate float division
- check user group console linux
- how to compare percentage value in shell script
- git remove remote tags
- git create branch with specific commit
- how to edit a text file in git bash
- [email protected]: Permission denied (publickey)
- tmux split-window leave open
- awk first upper
- install netlify cli
- curl post
- give names to ips on local machine ubuntu
- ubuntu color picker
- list all commands in windows terminal