0

So, i got this much done so far but im stuck and i cant get my third case statement to work, also for some reason it prints off the calendar like days 8 9 10, etc, if you copy and paste and run it you will see it doesnt line up correctly.

So, just looking for some help, maybe alittle clean up of my code etc.

```
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
int month, days, day, count=1;
cout<<"\t\t\t\tCalendar\n";
cout<<"Enter number of month (1 for january, 2 for february...): ";
cin>>month;
cout<<"Enter day of the month (1 for Sunday, 2 for Monday...): ";
cin>>day;
if (month ==1){cout<<"\n\t\t\tJanuary\n\n"; days=31;}
if (month ==2){cout<<"\n\t\t\tFebruary\n\n"; days=28;}
if (month ==3){cout<<"\n\t\t\tMarch\n\n"; days=31;}
if (month ==4){cout<<"\n\t\t\tApril\n\n"; days=30;}
if (month ==5){cout<<"\n\t\t\tMay\n\n"; days=31;}
if (month ==6){cout<<"\n\t\t\tJun\n\n"; days=30;}
if (month ==7){cout<<"\n\t\t\tJuly\n\n"; days=31;}
if (month ==8){cout<<"\n\t\t\tAugust\n\n"; days=31;}
if (month ==9){cout<<"\n\t\t\tSeptember\n\n"; days=30;}
if (month ==10){cout<<"\n\t\t\tOctober\n\n"; days=31;}
if (month ==11){cout<<"\n\t\t\tNovember\n\n"; days=30;}
if (month ==12){cout<<"\n\t\t\tDecember\n\n"; days=31;}
cout<<"\nSun\tMon\tTue\tWen\tThu\tFri\tSat\n";
while (count<=days){
switch(day){
case 1:
cout<<count<<"\t";break;
case 2:
cout<<"\t"<<count<<" "; break;
case 3:
cout<<"\t\t"<<count<<" "; break;}// by the way case 3 does not display correctly at all...
count++;}
return 0;
}
```