clear; clc;

data = randi(100, 1, 5)
max = data(1);
cnt = 0;
pos = 1;
for item = data
    cnt = cnt + 1;
    if item > max
        max = item;
        pos = cnt;
    end
end
max
pos