notasi mencari nilai maximum

{judul fungsi mencari nilai max}
function CariMax(nilai : integer, banyakdata : integer)

kamus
i : integer
max : integer

deskripsi
max=-9999
i←0
while(i‹banyakdata)do
if(nilai[i]›max)then
max←nilai[i]
i←i+1
end while

return max

Leave a Reply

Your email address will not be published. Required fields are marked *