answersLogoWhite

0

To determine the largest of any group of numbers, we must first determine the largest of any two numbers. For that we use the following simple algorithm:


If number A is greater than number B, then return number A otherwise return number B.


In C++ we can encode this algorithm using the following template function: