1、打开C编译器,配置环境。具体百度科也有。
2、新建 一个空白文件,保存为*.c程序。
提出的问题,在空白处建入解决的代码:
一年约有3.156×l07S。编写一个程序,要求输入您的年龄,然后显示该年龄合多少秒。
3、#include<stdio.h>
int main(void)
{
float a;
printf("Please input your age:");
scanf("%f",&a);
printf("Your age is %e seconds\n",a*3.156E7);
return(0);
}