#include <stdio.h>

int main()
{
    int x;
    printf("Enter the day you want to see(1-7) :");
    scanf("%d",&x);
    switch (x)
        {
            case 1:
            printf("Monday");
            break;
            case 2:
            printf("Tuesday");
            break;
            case 3:
            printf("Wednesday");
            break;
            case 4:
            printf("Thursday");
            break;
            case 5:
            printf("Friday");
            break;
            case 6:
            printf("Saturday");
            break;
            case 7:
            printf("Sunday");
            break;

            default:
            printf("\nInvalid number had been entered");
            break;   
        }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: