实验1-实验任务5

1 #include <stdio.h>
2 int main()
3 {
4     int year;
5     year = (float)(static_cast<double>(1000000000 / 365 / 24 / 60) / 60) + 0.5;
6     printf("10亿秒约等于%d年\n", year);
7     return 0;
8 }

 

posted @ 2023-10-29 20:50  铭懿  阅读(17)  评论(0)    收藏  举报