Guest User

Untitled

a guest
Nov 17th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. calculate-max(A, n):
  2. max = A[1]
  3. i = 2
  4. while i <= n:
  5. if A[i] > max:
  6. max = A[i]
  7. i = i + 1
Add Comment
Please, Sign In to add comment