Computer Science, asked by adityamani85, 3 months ago

Write a program to input number of week's day (1-7) and translate to its equivalent

name of the day of the week.(e.g., 1 to Sunday, 2 to Monday,.......,7 to Saturday ).​

Answers

Answered by pranay9018
0

Answer:

Mark me as a brainlist.

Explanation:

#include<stdio.h>

#include<conio.h>

void main()

{

int ch;

clrscr(); //to clear the screen

printf(“Enter number of week’s day(1-7):”);

scanf(“%d”,&ch);

switch(ch)

{

case 1: printf(“nSunday”);

break;

case 2: printf(“nMonday”);

break;

case 3: printf(“nTuesday”);

break;

case 4: printf(“nWednesday”);

break;

case 5: printf(“nThursday”);

break;

case 6: printf(“nFriday”);

break;

case 7: printf(“nSaturday”);

break;

}

getch(); //to stop the screen

Similar questions