wes d2a2ba9e15 first commit | 4 роки тому | |
---|---|---|
.. | ||
README.md | 4 роки тому | |
code.cpp | 4 роки тому | |
unitTest.cpp | 4 роки тому |
by Alex Golubov tags: conditions, validation, language_fundamentals
Create a function that takes a number as its only argument and returns true if it's less than or equal to zero, otherwise return false. Examples lessThanOrEqualToZero(5) ➞ false lessThanOrEqualToZero(0) ➞ true lessThanOrEqualToZero(2) ➞ false Notes Don't forget to return the result. If you get stuck on a challenge, find help in the Resources tab. If you're
Create a function that takes a number as its only argument and returns true
if it's less than or equal to zero, otherwise return false
.
lessThanOrEqualToZero(5) ➞ false
lessThanOrEqualToZero(0) ➞ true
lessThanOrEqualToZero(2) ➞ false
return
the result.