大一刚开始学习,遇到了麻烦,附图
#include <stdio.h>void main()
{
float h,w,t;
printf("please enter h,w:");
scanf (" %f, %f, &h, &w");
t=w/(h * h);
if (t < 18)
{
printf("t=%f\tLower weight!\n", t);
}
if (t >= 18 && t < 25)
{
printf ("t=%f\tStandard weight!\n", t);
}
if (t>= 25 && t< 27)
{
printf ("t=%f\tHigher weighter!\n", t);
}
if (t >= 27)
{
printf("t=%f\tToo fat!\n", t);
}
} 就是停止工作