You are viewing a single comment's thread. Return to all comments →
#!/bin/bash read n str="0" # for i in {0..$n}; for ((i=0; i<$n; ++i)); do read a str="$str+$a" done echo "($str)/$n" | bc -l | xargs printf "%.3f"
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 →