3-4

#include<stdio.h>
int main(void)
{
    int i,n,year;
    printf("Enter n:");
    scanf("%d",&n);
    for(i=1;i<=n;i++){
        printf("Enter year:");
        scanf("%d",&year);
        if((year%4==0&&year%100!=0)||(year%400==0)){
            printf("这是闰年");
        }
        else{
            printf("这不是闰年");
        }
    }


        return 0;

    }

posted @ 2013-10-21 00:23  傻子疯子捏子  阅读(87)  评论(0编辑  收藏  举报