C-Code to take one digit by user and display day accordingly 1 Monday, 2 –Tuesday… 7-Sunday any other digit print INVALID DIGIT.

#include<stdio.h>
main()
{
int digit;
printf("Enter any Digit :");
scanf("%d",&digit);
switch (digit)
{
case 1:             
  printf("\n MONDAY");
  break;
case 2:                         
   printf("\n TUESDAY");
   break;
case 3:             
     printf("\n WEDNESDAY");
     break;
case 4: 
      printf("\n THURSDAY");
      break;
case 5: 
      printf("\n FRIDAY");
      break;
case 6: 
      printf("\n SATURDAY");
      break;
case 7: 
      printf("\n SUNDAY");
      break;
default:          
     printf("INVALID DIGIT ");
   }  
}