用户显示指令~
# include <stdio.h># include <math.h>
void instruce(void);
double vel_sound(double temperature);/*velocity of sound*/
void instruce(void)
{
printf("this program computes the velocity of sound\n");
printf("to use this program,enter the temperature of the atmosphere ");
}
double main()
{
double temperature;
printf("please enter one number>\n");
scanf("%lf",&temperature);
printf("The velocity of sound is %f",vel_sound(temperature));
return(0);
}
double vel_sound(double T)
{
return(1086*sqrt((15*297)/247));
}
运行的时候为什么上面的那段显示不了。。。。