finding least and greatest number

Okay so I haven't started writing the code yet but can I please have a hint on how to write a program finding least and greatest, its a for loop right ?

its a for loop right

no idea :)

Are you talking about finding the smallest and largest numbers in an array of numbers?
An indirect hint: http://www.cplusplus.com/reference/algorithm/minmax_element/

And yes, that is a loop in disguise.
Topic archived. No new replies allowed.