print Days of week using if-else Ladder

/* write a program to print Days of week using if-else Ladder */

void main()
int n;
printf("\n Enter Day of week as Number 1 to 7 ");
if(n == 1)
printf("\n MONDAY");

 else if(n == 2)
 printf("\n TUESDAY");

  else if(n == 3)
  printf("\n WEDNESDAY");

   else if(n == 4)
   printf("\n THURSDAY");
    else if(n == 5)
    printf("\n FRIDAY");
     else if(n == 6)
     printf("\n SATURDAY");
      else if(n == 7)
      printf("\n SUNDAY");

       printf("\n WRONG INPUT ");


Who's online

We have 6 guests and no members online

About Us

Harsimran Singh


This website is a special gift for Programming Lovers , which want to learn basic Programming Languages and want to develop there skills Read More....

Our work

Find Us

This email address is being protected from spambots. You need JavaScript enabled to view it.

Harsimran Singh(Facebook)

Harsimran Singh(

Harsimran Singh(G+)