C#: Get the absolute difference between n and 51
Absolute Difference with Triple for Greater
Write a C# Sharp program to get the absolute difference between n and 51. If n is broader than 51 return triple the absolute difference.
Visual Presentation:

Sample Solution:
C# Sharp Code:
Sample Output:
6 21 0
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 the two given integer values. If the two values are the same, then return triple their sum.
Next: Write a C# Sharp program to check two given integers, and return true if one of them is 30 or if their sum is 30.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.