You are on page 1of 1

8

,
..

: [8]
,
. [5] .
5 .
.
. '
( ) .
..

1 8
'...'
[]
__
!
(
).


( )

i 1 N
' ',i,' '
[i]
_

i 1 N
' ',i,' ', [i]
_

max <-- [1]


i 1 N
[i]>max
max <-- [i]
_
_
' ', max

min <-- [1]


i 1 N
[i]<min
min <-- [i]
_
_
' ', min

Sum<-- 0
i 1 N
Sum <-- Sum+ [i]
_
, Sum

Sum<-- 0
i 1 N
Sum <-- Sum+ [i]
_
<--Sum /
,