Input: An array arr of size n. Handle edge case: If the array is empty, return or print an error message. Initialize a variable min to the first element of the array ...
1.Initialize a variable smallest with the first element of the array. 2.Iterate through the array starting from the second element. 3.Compare each element with smallest. 4.If the current element is ...