Write a Python program that reads 3 integer numbers, then it will display the pair with the largest sum as shown in the sample runs.
Write a Python program that reads 3 integer numbers, then it will display the pair with the largest sum as shown in the sample runs.
Sample run1:
Enter value1: 6
Enter value2: 9
Enter value3: 3
The pair with largest sum = (6,9) their sum is 15
Sample run2:
Enter value1: 3
Enter value2: 4
Enter value3: 6
The pair with largest sum = (4,6) their sum is 10
Sample run3:
Enter value1: 5
Enter value2: 9
Enter value3: 6
The pair with largest sum = (9,6) their sum is 15
Sample run4:
Enter value1: 8
Enter value2: 6
Enter value3: 10
The pair with largest sum = (8,10) their sum is 18
Step by Step Solution
3.48 Rating (151 Votes )
There are 3 Steps involved in it
Step: 1
Heres a Python program that reads three integer numbers and displays the pair with ...See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started