switch (month)

{

case 1:

case 3:

case 5:

case 7:

case 8:

case 10:

case 12:

date_month = 31;

break;

default:

date_month = 30;

break;

}

if (month == 2)

{

if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0)     ///윤년

date = 29;

else

date = 28;

}

2월만 윤년 조건 집어넣어서 29일 28일 나오게 하려하는데 if문이 switch문 앞으로 넣으나 뒤로 넣으나 씹힘ㅜㅜㅜ