Enter the day of the week with the switch statement

Requirements through the switch implementation to write a program, manually enter the number of weeks, to determine whether it is a day off or a weekday, 1 ~ 5

#include<stdio.h>

intmain ()

{intn;

scanf(“%d”,&n);

switch(n)

{case1:case2:case3:case4:case5:printf(“weekday\n”);break;

case0:case6:case7:printf(“day off\n”);break;

defaultLprintf(“Input error! \n”);

}

return0;

}