帮忙找出程序中的错误
这是我编的一段程序,想计算一个公式,但是出现了错误/* Note:Your choice is C IDE */
#include "stdio.h"
#include "math.h"
void main()
{
int i;
double surface_tension=0.8,pi=3.14,gas_constant=8.314,liq_atomic_number=24,crucible_area=0.018,gas_volume=0.01884,radius=0.001,foam_height,time=60,temperature=973,viscosity=0.027,gas_mole_mass=0.02;
for(i=0;i<=5;i++)
{
printf("the time is %fs,",time);
foam_height=4*pi*temperature*surface_tension*double log(double time)*(radius*radius/2/viscosity-surface_tension*radius*gas_volume/gas_mole_mass/gas_constant/temperature/viscosity)/(crucible_area/liq_atomic_number);
foam_height=foam_height*1000;
printf("the foam_height is %fmm.\n,",foam_height);
time=time+10;
}
}
希望帮帮忙啊,谢谢拉