-
Program to Find Fibonacci Series using Shell Script

-
Program to Calculate Combination [nCr] in Bash: Shell Scripting
![Program to Calculate Combination [nCr] in Bash: Shell Scripting](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
The following shell scripting program is written in bash to calculate combination formula which is n! /(n-r)!r!. Code: #!/bin/bash clear echo “Program to find Combination in Probability” function fact { mul=1 i=$1 while [[ $i -gt 1 ]] do sub=`expr $i – 1` mul=`expr $mul \* $i` i=$sub done echo $mul } echo “Enter value…