8. Minimum Value Algorithm

Exercises

  1. 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[*].
  2. 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