/* Note:Your choice is C IDE */
#include “stdio.h”
int main()
{
int month;
printf(“请输入一个月份”);
scanf("%d",&month);
switch(month){
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
printf(“2008年%d月有31天”,month);
break;
case 4:
case 6:
case 9:
case 11:
printf(“2008年%d月有30天”,month);
break;
case 2:
printf("2008年%d月有29天",month);
break;
default:printf("输入的不正确应该在1到12之间");
}