Bartleby Related Questions Icon

Related questions

Question
- Find the maximum element of the array
max(a, n)
{
}
total = 0
for i=1 to n
total = total + a[i]
return total
expand button
Transcribed Image Text:- Find the maximum element of the array max(a, n) { } total = 0 for i=1 to n total = total + a[i] return total
Expert Solution
Check Mark