Computer Science, asked by asgharnimrag123, 8 months ago

ALGORITHM Secret(A[0..n − 1])
//Input: An array A[0..n − 1] of n real numbers
minval←A[0]; maxval←A[0]
for i ←1 to n − 1 do
if A[i]< minval
minval←A[i]
if A[i]> maxval
maxval←A[i]
return maxval – minval

Answers

Answered by raghavianusiya
2

Answer:

ashngar please type crt ly and visible this is not clear

Similar questions