RosettaCodeData/Task/Averages-Arithmetic-mean/Logo/averages-arithmetic-mean.logo
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

5 lines
118 B
Text

to average :l
if empty? :l [output 0]
output quotient apply "sum :l count :l
end
print average [1 2 3 4] ; 2.5