Moving Average by teebee

<?for(;$a=trim(fgets(STDIN));)printf("$a Average: %.1f
",1/min(++$i,5)*$n-=$$i-${$i+5}=substr($a,7));

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page