Advertisement
SulimanSH

Algorithm Smallest Element

Sep 2nd, 2023
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. Algorithm Smallest Element (n)
  2. 1. Smallest= A[1]
  3. 2. For i=1 to n-1 do
  4. 3. If A[i] < Small do
  5. 4. Small= A[i]
  6. 5. End if
  7. 6. End For
  8. 7. Print Small
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement