6 kyu

One Line Task: Makes 10

Description:

Task

Given two integers a and b in range 1..20, return true if one of them is 10 or if their sum is 10, false otherwise.

Code Limit

Less than 36 characters.

Example

For a = 1, b = 10, the answer is true.

Because b is 10.

For a = 10, b = 1, the answer is true.

Because a is 10.

For a = 1, b = 9, the answer is true.

Because a+b is 10.

For a = 1, b = 2, the answer is false.

Because there is no 10.

Puzzles
Restricted

Stats:

CreatedMay 10, 2017
PublishedMay 10, 2017
Warriors Trained563
Total Skips8
Total Code Submissions6289
Total Times Completed195
JavaScript Completions195
Total Stars13
% of votes with a positive feedback rating88% of 83
Total "Very Satisfied" Votes68
Total "Somewhat Satisfied" Votes10
Total "Not Satisfied" Votes5
Total Rank Assessments5
Average Assessed Rank
5 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
6 kyu
Ad
Contributors
  • myjinxin2015 Avatar
  • kazk Avatar
Ad