C#: Compute the sum of three given integers. If the two values are same return the third value
Sum of Three Integers or Return Third if Two Match
Write a C# Sharp program to compute the sum of three given integers. Return the third value if the two values are the same.
Visual Presentation:

Sample Solution:-
C# Sharp Code:
Sample Output:
16 23 12 18
Flowchart:

C# Sharp Code Editor:
Improve this sample solution and post your code through Disqus
Previous: Write a C# Sharp program to compute the sum of two given non-negative integers x and y as long as the sum has the same number of digits as x. If the sum has more digits than x then return x without y.
Next: Write a C# Sharp program to compute the sum of the three integers. If one of the values is 13 then do not count it and its right towards the sum.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.