C++ Homework Minimum and Maximum


I have a homework assignment where i need to use the fmin and fmax functions in order to see which number is greater than the other. I have most of the code written out. I just cannot figure out how to use them in order to get the computer to give me an answer if that makes sense. anything helps thanks:)


Just wondering, what code editor are you using?


It’s hard to see where the difficulty might be from what you’ve written. fmin and fmax are pretty simple to use; you give it two numbers, and it gives you whichever one is smaller (fmin) or greater (fmax). Maybe your problem is with input or output?

Why don’t you post what you have and try to describe clearly what it is you are confused about.