第二次实验2

#include "stdio.h"
int main()
{
    int i;
    printf("input the year.\n");
    scanf("%d",&i);
        {
            if((i%4==0&&i%100!=0)||i%400==0)
                printf("year:%d,month:2,day:29\n",i);
            else
               printf("year:%d,month:2,day:28\n",i);
         }
    return 0;
}   

猜你喜欢

转载自www.cnblogs.com/133-2/p/10759106.html