104k views
0 votes
write a function named range test that takes an integer as an argument and returns true if the number is within the range 1 to 555 (not inclusive, i.e. neither 1 nor 555 are in range). otherwise return false. (optional challenge: can you write the function in one line without loop (while, for) or conditional (if)?

User WillD
by
4.4k points

1 Answer

1 vote
what language does this have to be in
User SirViver
by
3.7k points