Using the knowledge in computational language in JAVA it is possible to write a code that print the respective minimum and maximum values as a single line
<h3>Writting the code in JAVA:</h3>
<em>import java.io.*;</em>
<em>import java.util.*;</em>
<em>import java.text.*;</em>
<em>import java.math.*;</em>
<em>import java.util.regex.*;</em>
<em />
<em>public class Solution {</em>
<em> public static void main(String[] args) {</em>
<em> Scanner in = new Scanner(System.in);</em>
<em> long sum = 0;</em>
<em> long max = Long.MIN_VALUE;</em>
<em> long min = Long.MAX_VALUE;</em>
<em> for (int i = 0; i < 5; i++){</em>
<em> long n = in.nextLong();</em>
<em> sum += n;</em>
<em> max = Math.max(max, n);</em>
<em> min = Math.min(min, n);</em>
<em> }</em>
<em> System.out.println((sum - max) + " " + (sum - min));</em>
<em> }</em>
<em>}</em>
See more about JAVA at brainly.com/question/12974523
#SPJ1