average(A) :
If length(A) != 100 then:
ERROR
End If
Sum ← 0
For x in A do:
Sum ← Sum + x
End For
Return Sum / 100
end average
Algorithm :-
average(A) :
If length(A) != 100 then:
ERROR
End If
Sum ← 0
For x in A do:
Sum ← Sum + x
End For
Return Sum / 100
end average
ANSWER :-
Get Answers For Free
Most questions answered within 1 hours.