#include
int main()
{int bottle;
float weight,lethal_dose;
printf("请输入你的体重:");
scanf("%f",&weight);
lethal_dose=5/35;
weight=weight1000;
bottle=weightlethal_dose/(360*0.001);
printf("喝%d罐汽水可以杀死你!",bottle);
return 0;
}
5/35 ,执行整数除法,写成5.0/35 或者(double)5/35
lethal_dose=5/35; 的结果是0,改为lethal_dose=5.0/35;