find the average of many numbers using pseudocode

2 answers

sum=0
for i = 1..n
sum += value[i]
end for
avg = sum/n
I’d be glad to check your answers