Easy10 pts
Mini-Max Sum
Given five positive integers, find the minimum and maximum sums of exactly four of the five. Print: minSum maxSum.
Input
One line: five space-separated integers.
Output
Two space-separated long integers: min and max sum.
Sample
1 2 3 4 5
Expected
10 14
Loading editor…
Output
No output yet. Run your code to see results.