//5.12
int main()
{
float w, h, t;
printf("Please enter your weight(kg):");
scanf("%f", &w);
printf("Please enter your weight(m):");
scanf("%f", &h);
t = w / (h * h);
if (t < 18)
{
printf("You are low weight");
}
else if (t<=25)
{
printf("You are of normal weight");
}
else if (t <= 27)
{
printf("You are overweight");
}
else
{
printf("You are fat");
}
return 0;
}
02-13