You are viewing a single comment's thread. Return to all comments →
mine worked without awk.I used let
read n sum=0 for (( i=1 ; i<=$n ; i++ )) do read a let "sum+=$a" done printf "%.3f" $(echo $sum/$n | bc -l)
Seems like cookies are disabled on this browser, please enable them to open this website
Compute the Average
You are viewing a single comment's thread. Return to all comments →
mine worked without awk.I used let