#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
void Year()
{
int year = 0;
scanf("%d", &year);
if (year % 4 == 0 &&year%100!=0&&year||400==0)
{
printf(“今年是闰年\n”);
}
else
printf(“今年是平年\n”);
}
int main()
{
Year();
system(“pause”);
return 0;
}
判断平年闰年,vs2013
最新推荐文章于 2024-04-16 22:34:04 发布