Question: Description Submissions EASY In Progress Easy In a class, the maths teacher organized a game. In the game, every student is given a badge that

Description
Submissions
EASY
In Progress Easy
In a class, the maths teacher organized a game. In the game, every student is given a badge that has a number on it.
The teacher instructed the students to form pairs (each pair consists of two students) so that when the minimum number from each pair is added, it results in the maximum sum possible.
Write a program that reads the badges B of the students and prints the maximum sum possible.
Input
The input will be a single line containing space-separated integers representing the badges
B of the students.
Output
The output should be a single line contalining an integer that is the maximum sum possible.
Explanation
For example, if the grven badges are B=-36.54
Description Submissions EASY In Progress Easy In

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!