Write a program in C to display the name of the day, depending upon the number entered from the keybord using the switch case Loop.
#include <stdio.h> #include <conio.h> void main() { int i; printf("enter the no :"); scanf("%d",&i); switch(i) { case 1: printf("Monday...."); break; case 2: printf("Tuesday..."); break; case 3: printf("Wednesday."); break; case 4: printf("Thursday.."); break; case 5: printf("Friday...."); break; case 6: printf("saturday.."); break; case 7: printf("sunday..."); break; default: printf("please enter the no betwen 1 to 7 "); break; } getch(); }