Question: Task Write a program that takes 3 integer values from the user and prints out their sum such that if one of the values appears

Task Write a program that takes 3 integer values from the user and prints out their sum such that if one of the values appears more than once, then it will not be included in the sum. . Examples Assume 1, 2, and 1 are entered. Your program should print out 2 (since 1 appears twice and does not count towards the sum). Assume 5, 2, and 2 are entered. Your program should print out 5 (since 2 appears twice and does not count towards the sum). I Assume 10, 10, and 10 are entered. Your program should print out 0 (since 10 appears three times and does not count towards the sum). Assume 1, 2, and 3 are entered. Your program should print out 6 (since all entered values are distinct and 6=1+2+3). Sample run (bold indicates user input): Enter the integer: 5 Enter the integer: 1 Enter the integer: 1 The sum is 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
