#include
int main()
{
int y1, y2,y3, n = 0;
printf("请输入出生");
scanf_s("%d", &y1);
printf("请输入现在的时间");
scanf_s("%d", &y2);
y3 = y2 - y1;
for(y1;y1<=y2;y1++)
{
if (y1 % 4 == 0 && y1 % 100 != 0 || y1 % 400 == 0)
{
n++;
}
}
int x1, x2, m = 0;
x1 = 366 * n * 24 * 60 * 75;
x2 = 365 * (y3 - n) * 24 * 60 * 75;
m = x1 + x2;
printf("%dn", m);
return 0;
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)