主()
{
int n;
Printf("請輸入2005年的任意月份(輸入Q退出):");
while(scanf("%d ",& ampn)==1)
{
開關(n)
{
Case 1:printf("本月有31天\ n ");打破;
案例二:printf("本月有28天\ n ");打破;
案例三:printf("本月有31天\ n ");打破;
案例四:printf("本月有30天\ n ");打破;
案例五:printf("本月有31天\ n ");打破;
案例6:printf("本月有30天\ n ");打破;
案例7:printf("本月有31天\ n ");打破;
案例8:printf("本月有31天\ n ");打破;
案例9:printf("本月有30天\ n ");打破;
案例10:printf("本月有31天\ n ");打破;
Case 11:printf("本月有30天\ n ");打破;
案例12:printf("本月有31天\ n ");打破;
}
Printf("請輸入2005年的任意月份(輸入Q退出):");
}
返回0;
}