Compute the Average

  • + 0 comments

    read N sum=0 for ((i=1;i<=N;i++));do read int ((sum+=int)) done ((val=sum/N)) printf "%.3f" $val

    What seems to be an issue here?