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