#include<iostream>
usingnamespace std;
int main()
{
int num1;
int num2;
int num3;
int high1;
int high2;
int maxSum;
cout << "\n Hello there !\n\nThis Program will find the Maximum Sum of the \n""\t""TWO LARGEST Numbers !\n\n";
cout << "--- Enter 3 numbers --- \n" << endl;
cout << "Please enter your 1st number: ";
cin >> num1;
cout << "Please enter your 2nd number: ";
cin >> num2;
cout << "Please enter your 3rd number: ";
cin >> num3;
{
if (num1 < num2)
{
high1 = num2;
high2 = num3;
maxSum = num2 + num3;
}
elseif (num2 < num1)
{
high1 = num1;
high2 = num3;
maxSum = num1 + num3;
}
elseif (num3 < num1)
{
high1 = num1;
high2 = num2;
maxSum = num1 + num2;
}
cout << "\n";
}
cout << "The Maximum Sum of " <<high1;
cout << " and " <<high2;
cout << " is " << maxSum << endl;
cout << "\n";
cout << "Thank you for using this program !\n\n";
system("pause");
return 0;
}
Given three integers A, B, and C, write in English how you -- a human -- would figure out which one is the largest
and which one is the second largest. Post that here, then we'll work on translating to actual code.