点击(此处)折叠或打开
-
#include<stdio.h>
-
int main()
-
{
-
int year;
-
printf("请输入年份\n");
-
scanf("%d",&year);
-
if(year%100 !=0)
-
{
-
if(year%4==0)
-
{
-
printf("此年是闰年\n");
-
return 0;
-
}
-
else if(year%400==0)
-
{
-
printf("此年是闰年 \n");
-
return 0;
-
}
-
else
-
{
-
printf("此年是平年 \n");
-
-
}
-
return 0;
-
}
- }