- 5


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

 

­ ­ , .