Take a look at this. Do you understand why the program doesn't work when you enter the same three values? Hint: it is related to the compiler warning that you are probably getting.
Please enter your first value. 5
Please enter your second value. 5
Please enter your third value. 5
The minimum of 5, 5, and 5 is 2.64188e-308.
I suggest reading some other threads. You'll be better off testing two values at a time and reading input in a loop. It is very similar to some of the threads were someone is looking for the max. The first one there had some complete examples that you could use as a guideline. http://www.cplusplus.com/forum/general/21148/ http://www.cplusplus.com/forum/beginner/8076/