C++ Help
https://gyazo.com/df8ad46ec1f59b0e390d2d20f8e58ac4
For this program i created a few variables and gave them random numbers. I would like to find the minimum, highest and the sum of the set.
I know I need to declare a variable for sum and highest value.
But I'm having trouble of finding the minimum of the set. I'm not sure if I should be using for, while, if/else or whatever :/
Similarly I don't know how to find the highest value.
I know how to find the total (obviously just add all of the variables).
I'd appreciate the help
For this program i created a few variables and gave them random numbers. I would like to find the minimum, highest and the sum of the set.
I know I need to declare a variable for sum and highest value.
But I'm having trouble of finding the minimum of the set. I'm not sure if I should be using for, while, if/else or whatever :/
Similarly I don't know how to find the highest value.
I know how to find the total (obviously just add all of the variables).
I'd appreciate the help