N


s = SN / N
:
N . .
, ­ :

廠 '
cls
( N ) ? N
(=, N) input =, N
S
:= 0 S = 0
N <= 0  if N <= 0 then
( N) ? N
c N > 0  elseif N > 0 then
k = 1 N 렠 for k = 1 to N
(k, :) ? k, :
(x) input x
S
:= S + x S = S + x
렠 next k
s
:= S/N s = S/N
( =, s) ? =, s
堠 end if
end
­ ­ , .