a={}s=0.0n=30k=0for i in 1..n a[i]=rand(1..100) s=s+a[i]ends=s/30for i in 1..n if (a[i] > s) k=k+1 endendp k
a={}
s=0.0
n=30
k=0
for i in 1..n
a[i]=rand(1..100)
s=s+a[i]
end
s=s/30
for i in 1..n
if (a[i] > s)
k=k+1
end
end
p k