Hints or help on writing a code to find Max sum of 3 integers
Solved.
Last edited on
1 2 3 4 5 6 7 8 9
|
if((a*b)>=(b*c))
HighestSum=a*b;
else
HighestSum=b*c;
if(HighestSum>=(a*c)
HighestSum=HighestSum
else
HighestSum=(a*c);
cout<<HighestSum;
|
probably not the most elegant way to go about it but should work.
Topic archived. No new replies allowed.