#include<stdio.h>
#define MONTHS 12//不包括闰年的输入
int main()
{
int days[MONTHS]={
31,28,31,30,31,30,31,31,30,31,30,31};
int month;
do{
printf("Input a month:");
s
输入月份所拥有的天数
最新推荐文章于 2023-10-20 00:05:21 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
#include<stdio.h>
#define MONTHS 12//不包括闰年的输入
int main()
{
int days[MONTHS]={
31,28,31,30,31,30,31,31,30,31,30,31};
int month;
do{
printf("Input a month:");
s