回覆列表
  • 1 # 使用者9581233299198

    # include

    # include

    int main (void)

    {

    enum month{January,February,March,April,May,June,July,August,September,October,November,December};

    char* name[]={"January","February","March","April","May","June","July","August","September","October","November","December"};

    int count[12] = {31,28,31,30,31,30,31,31,30,31,30,31};

    int year,i;

    printf("Input Year:");

    scanf ("%d",&year);

    if (((year%4 == 0) && (year%100 != 0)) || year%400 == 0) count[1]++;

    for (i = January ; i

    {

    printf("%s:%d\n",name[i],count[i]);

    }

    getch();

    return 0;

    }

  • 中秋節和大豐收的關聯?
  • 泰拉瑞亞一個世界有幾個空島?