Maybe the functions min
http://www.cplusplus.com/reference/algor...
and max
http://www.cplusplus.com/reference/algor...
are helpful for you.
There is a code example for both of the functions
Hi, I'd be very much thankful is someone could help me write a program which prints out first the bigger, then the smaller number when you insert them.