不知道是哪里出了错??
输入数字后
没有结果??
#include <stdio.h>
int main(void)
{
unsigned age;
double seconds = 3.156e7;
double a_g;
printf("Please enter your age: ");
scanf("%d\n",&age);
a_g = age*seconds;
printf("年龄对应的秒数:%f\n",a_g);
return 0;
}
#include <stdio.h>
int main(void)
{
float high;
float h;
float h1=2.54;
printf("please enter your high: ");
scanf("%f\n", &high);
h = high*h1;
printf("%f\n",h);
return 0;
}
……