Less than 42

MATH

Problem

Given two integers number1 and number2, return true if their sum is less than 42, and false otherwise.

Examples

isSumLessThan42(15, 20) // true // 15 + 20 = 35, which is less than 42. isSumLessThan42(30, 12) // false // 30 + 12 = 42, which is not less than 42. isSumLessThan42(-5, 10) // true // -5 + 10 = 5, which is less than 42.
Loading...