task5.c

include<stdio.h>

int main()
{
int s, year;
s = 1000000000;
year = s / 3600 / 24 / 365;
if (year % 2 > 0)
year += 1;
printf("10亿秒约等于%d年\n", year);
return 0;
}

posted @ 2025-03-10 12:58  风火klg  阅读(6)  评论(0)    收藏  举报