bash program to calculate combination

Program to Calculate Combination [nCr] in Bash: Shell Scripting

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 […]

%d bloggers like this: