一年大约有3.156e7秒,编写一个程序,提升用户输入年龄,然后显示年龄对应的秒

/一年大约有3.156e7秒,编写一个程序,提升用户输入年龄,然后显示年龄对应的秒/

#include <stdio.h>

int main(void)
{
    double Age;
    double seconds;
    printf("please enter Age\n");
    scanf("%lf",&Age);
    seconds=Age*3.156e7;
    printf("%.3e\n",seconds);
    return 0;
}

posted on 2024-07-25 23:44  wessf  阅读(13)  评论(0编辑  收藏  举报