Practice · 3 of 3
Guarded Values
CHALLENGE
Difficulty: beginner+25 XP
Define macros LOW_CUT 10 and HIGH_CUT 90 and implement int band(int v) returning -1 if v < LOW_CUT, 1 if v > HIGH_CUT, else 0.
Press Submit to check your solution.
Back to lesson: Practice: Organization Practice