[Solved] Make java give the the highest sum of 3 numbers out of 4 given


First find the smallest number.

So for 3 2 5 5 it would be 2. Make sure you store this.

Thus, the numbers to sum are 3, 5 and 5

To get the total sum you need to add all the numbers together so:

3 + 2 + 5 + 5 = 15

And then minus the smallest number from the sum. So 15-2 which equals 13

1

solved Make java give the the highest sum of 3 numbers out of 4 given