#include <stdio.h>

int main() 
{
    int week;
    printf("enter the day(1-7): ");
    scanf("%d",&week);
    switch(week)
    {
        case 1:
        printf("the day is monday");
        break;

        case 2:
        printf("the day is tuesday");
        break;

        case 3:
        printf("the day is wednesday");
        break;

        case 4:
        printf("the day is thursday");
        break;

        case 5:
        printf("the day is friday");
        break;

        case 6:
        printf("the day is saturday");
        break;

        case 7:
        printf("the day is sunday");
        break;

        default:
        printf("input is invalid");
    }
    return 0;
}

Embed on website

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