W.A.S.S to find the factorial of a given number.Program# W.A.S.S to find the factorial of a given number. echo -e "enter number:\c" # \c Suppress trailing newline, –e Backslash-escaped # characters is enabledread numberi=1f=1while test $i -le $numberdof=`expr $f \* $i` # expression is written in back quote because it will produce output at # runtimei=`expr $i + 1`done # ‘done’ is completion of while loopecho "factorial of number is:$f"Outputenter number:4factorial of number is:24