You are viewing a single comment's thread. Return to all comments →
just adding my solution to the mix
read count for ((x=0; x <=count-1; x +=1)) do read val total=$((total+val)) done printf "%.3f" $(echo $total/$count | 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 →
just adding my solution to the mix