RosettaCodeData/Task/Averages-Arithmetic-mean/Logo/averages-arithmetic-mean.logo
2023-07-01 13:44:08 -04: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