clear; clc;

data = -randi(100, 1, 5)

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