clear; clc;

% data = [7, -2, 4, 8, 9];
data = randi(100, 1, 5)

result = data(1);
for item = data(2 : end)
    if item > result
        result = item;
    end
end
result

max(data)

s = 0;
for i = 1 : length(data)
    s = s + data(i);
end
s
    





