P69——一年大约有3.156*10的七次方秒,编写一个程序,提示用户输入年龄,然后显示该年龄对应的秒数。

先贴正确的程序: #include <stdio.h> int main(void) { int age; double seconds=3.156e7; printf("please enter your age:"); scanf("%d",&age); printf("you have been on the earth for %.4f seconds\n",age*secon
相关文章
相关标签/搜索