first commit

master
unknown 6 years ago
commit c134ba31b9

@ -0,0 +1,13 @@
int how(int A)
{
int i,s=0,day;
for(i=1;i<=A-1;i++)
{
if(i%4==0&&i%100!=0||i%400==0) /*****判断是否是闰年******/
day=366;
else
day=365;
s=s+day;
}
return s;
} /*****计算公元-年-月-日到输入年份之前的总天数*****/
Loading…
Cancel
Save