C++ Homework Minimum and Maximum


#1

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:)


#2

Just wondering, what code editor are you using?


#3

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.