8. Minimum Value Algorithm
- Write a program that reads in 7 different numbers, then prints out the smallest value and also prints out the position of the smallest value in the input sequence as a number from 1 to 7. If you need a hint, see the footnote.
- Write a program that reads in 7 numbers and prints out both the smallest and the greatest value of the 7 given values. All the numbers should be input by the user only once, of course. If you need a hint, see the footnote.
Click here for solutions