WAP To Input Of Week’s of Days(1-7).

#include<iostream.h>
#include<conio.h>
Void main()
{   clrscr();
     Int dow;
     Cout<<”Enter no. of week’s day(1-7)”;
     Cin>>dow;
     Switch(dow)
     {       case 1: cout<<”\n”<<”Sunday”;
                           break;
              Case 2:cout<<”\n”<<”Monday”;
                            break;
               Case 3: cout<<”\n”<<”Tuesday”;
                             break;
                Case 4: cout<<”\n”<<”Wednesday”;
                              beak;
                Case 5: cout<<”\n”<<”Thursday”;
                               break;
                 Case 6: cout<<”\n”<<”Friday”;
                               break;
                  Case 7: cout<<”\n”<<”Saturday
                                 break;
                     default: cout<<”\n”<<”Wrong no. of day”;
                                 break;
           }
             getch();
   }



                 

Comments

Popular Posts