DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
factorial of a number bash
read num count=1 for((i=1;i<num+1;i++)); do count=$((count*i)) done echo "Factorial is $count"
PREVIOUS
NEXT
Tagged:
#factorial
#number
#bash
ADD COMMENT
Topic
COMMENT
Name
3+2 =
Submit