#include<stdio.h>
#define MONTH 12
int main()
{
int days[MONTH]={31,28,31,30,31,30,31,31,30,31,30,31};
int month;
do{
printf("input a month:");
scanf("%d",&month);
}while (month<1||month>12);
printf("The number of days is %d\n",days[MONTH-1]);
return 0;
}
结果的2月不对 为什么呢
qq_青枣工作室_0
惊回头
Amos_落叶