answersLogoWhite

0


Best Answer

/* write a program to print Days of Week using switch-case structure */

#include<stdio.h>

#include<conio.h>

void main()

{

int n;

clrscr();

printf("\n Enter Day of weak as Number 1 to 7 ");

scanf("%d",&n);

switch(n)

{

case 1:

printf("\n MONDAY ");

case 2:

printf("\n TUESDAY");

case 3:

printf("\n WEDNESDAY");

case 4:

printf("\n THURSDAY");

case 5:

printf("\n FRIDAY");

case 6:

printf("\n SATURDAY");

case 7:

printf("\n SUNDAY");

default :

printf("\n no operation is required");

}

getch();

}

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Writ a program in c to display day of the week using in switch case?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Opengl programming source code for pool game?

writ an opengl program for pool game


What does writ of assistance mean?

why were colonists angry about British officers using writs of assistance?


What legal document is similar to a present day search warrant?

Writ of Assistance


How many pages does And Having Writ... have?

&quot;And Having Writ...&quot; has 64 pages.


What is a writ on a house?

A writ is a legal order or command, an official mandate requiring the performance of a specific act. Examples of writs include a writ of possession, writ of execution, writ of garnishment, etc. Presumably the writ referred to in the question would have something to do with a home or other real estate.


When was And Having Writ... created?

And Having Writ... was created in 1978.


What is a writ of registration on a vehicle repossession?

A 'writ of REPLEVIN" maybe?


What is a writ of right?

A writ of right is a writ which lay to recover lands in fee simple, unjustly withheld from the true owner.


What is a writ of inquiry?

A writ of mandamus is a writ which compels a government entity to perform mandatory or purely ministerial duties correctly.


Can you writ a sentence using cower?

My cat, would cower and hide in the corner every time she knew she did something wrong.


What is blue writ?

A writ of bodily attachment ("Blue Writ") is issued for somebody's arrest when they have traditionally missed a court date or payment.


What is the Writ of assistance?

The Writ Of Assistance Was When boston soldiers killed a lot of people so the government did the writ of assistance to stop all this killing.