#include <stdio.h>

int main() {
    int a;
    printf("Enter the weekday you want to see(1-7) : \n");
    scanf("%d",&a);
    if (a == 1)
    {printf("Monday");}
    else if(a == 2)
    {printf("Tuesday");}
    else if(a == 3)
    {printf("Wednesday");}
    else if(a == 4)
    {printf("Thursday");}
    else if(a == 5)
    {printf("Friday");}
    else if(a == 6)
    {printf("Saturday");}
    else if(a == 7)
    {printf("Sunday");}
    else
    {printf("The Entery is Inavalid");}
}

Embed on website

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