cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
finding least and greatest number
finding least and greatest number
Nov 20, 2014 at 4:16pm UTC
leashbomb69
(93)
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 ?
Nov 20, 2014 at 4:38pm UTC
mutexe
(2372)
its a for loop right
no idea :)
Are you talking about finding the smallest and largest numbers in an array of numbers?
Nov 20, 2014 at 7:14pm UTC
keskiverto
(10402)
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.