Practice ยท 2 of 4
Weekend Check
Given typedef enum { MON, TUE, WED, THU, FRI, SAT, SUN } Day; in scope, implement int is_weekend(Day d) returning 1 for SAT or SUN, else 0.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Enum Practice