for(a=[i=0];r=readline();print(r,"Average:",(eval(a.join('+'))/a.length).toFixed(1)))a[i++%5]=r.slice(7)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page