Write a program to print the day name by add the day number.

#include<stdio.h>

#include<conio.h>

int main()

{

int a;

printf(“Welcome to www.candcpp.com\n”);

printf(“Enter the day No From (1 to 7): \n”);

scanf(“%d”,&a);

switch(a)

{

case 1:

printf(“Friday”);

break;

case 2:

printf(“Saturday”);

break;

case 3:

printf(“Sunday”);

break;

case 4:

printf(“Monday”);

break;

case 5:

printf(“Tuesday”);

break;

case 6:

printf(“Wednesday”);

break;

case 7:

printf(“thursday”);

break;

default:

printf(“Papu Yar Tang Na Kar \n www.candcpp.com”);

}

getch();

return 0;

}