/*3-5.一年约有 3.156×l07S。编写一个程序,要求输入您的年龄,然后显示该年龄合多少秒。*/
#include <stdio.h>
int main()
{
int a;
printf("Please input your age");
scanf("%d", &a);
printf("Your age is %e second.\n", a * 3.156e7);
system("pause");
return 0;
}
/*3-5.一年约有 3.156×l07S。编写一个程序,要求输入您的年龄,然后显示该年龄合多少秒。*/
#include <stdio.h>
int main()
{
int a;
printf("Please input your age");
scanf("%d", &a);
printf("Your age is %e second.\n", a * 3.156e7);
system("pause");
return 0;
}