Practice · 1 of 2
In Range?
CHALLENGE
Difficulty: beginner+25 XP
Implement int in_range(int x, int lo, int hi) returning 1 when lo <= x <= hi and 0 otherwise — as one boolean expression.
Press Submit to check your solution.
Back to lesson: Practice: Logic Bench