diff --git a/minm4x.py b/minm4x.py new file mode 100644 index 00000000..4696b04d --- /dev/null +++ b/minm4x.py @@ -0,0 +1,15 @@ + + +def miniMaxSum(arr): + # Write your code here + sorted_arr = sorted(arr) + print(sum(sorted_arr[:4])," " ,sum(sorted_arr[1:])) + + +a=[] +n=5 +for i in range(0,n): + l=int(input()) + a.append(l) + +miniMaxSum(a) \ No newline at end of file