C#: Check two given integers, and return true if one of them is 30 or if their sum is 30
Check 30 or Sum Equals 30
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.
Visual Presentation:

Sample Solution:
C# Sharp Code:
Sample Output:
True True True False
Flowchart:

C# Sharp Code Editor:
Improve this sample solution and post your code through Disqus
Previous: Write a C# Sharp program to get the absolute difference between n and 51. If n is greater than 51 return triple the absolute difference.
Next: Write a C# Sharp program to check a given integer and return true if it is within 10 of 100 or 200.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics