一年大约有3.1536*107s。编写一个程序,要求
输入你的年龄,然后显示该年龄等于多少秒。
/*
*一年大约有3.1536*107s。编写一个程序,要求
输入你的年龄,然后显示该年龄等于多少秒。
*
* */
#include <stdio.h>
int main(void){
int age;
printf("请输入你的年龄:");
scanf("%d",&age);
printf("%f秒\n ",age*3.1536*10e7);
}
一年大约有3.1536*107s。编写一个程序,要求
输入你的年龄,然后显示该年龄等于多少秒。
/*
*一年大约有3.1536*107s。编写一个程序,要求
输入你的年龄,然后显示该年龄等于多少秒。
*
* */
#include <stdio.h>
int main(void){
int age;
printf("请输入你的年龄:");
scanf("%d",&age);
printf("%f秒\n ",age*3.1536*10e7);
}