Week Program using switch in C

#include<stdio.h>
#include<conio.h>
void main()
{
int n;
clrscr();
printf(“Enter any Number”);
scanf(“%d”,&n);
switch(n)
{
case 0:
printf(“Today is Sunday\n”);
break;
case 1:
printf(“Today is Monday”);
case 2:
printf(“Today is Tuesday”);
break ;
case 3:
printf(“Today is Wednesday”);
break;
case 4:
printf(“Today is Thrusday”);
break;
case 5:
printf(“Today is Friday”);
break ;
case 6:
printf(“Today is Saturday”);
break;
default :
printf(“Wrong decision”);
}
getch();
}

After Running Program

Leave a Reply