You are viewing a single comment's thread. Return to all comments →
Short and crisp
read n arr=($(cat)) arr=${arr[*]} printf "%.3f" $(echo $((${arr// /+}))/$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 →
Short and crisp