Write a program that inputs values into an array and finds the smallest and largest value from it.
Write a program that inputs different values into an array and finds out the smallest value and largest value from it. So let’s Write Code: Let’s build logic First: Algorithm for code: Step 1: Start Step 2: Declare an array and variables smallest, largest and i. Step 3: Take inputs from user. Step 4: Set…