/*编写一个程序输入某人的身高和体重,按下式确定此人的体重是否为标准、过胖或过瘦:
( 1)标准体重=(身高?110)公斤;
( 2)超过标准体重 5 公斤为过胖;
( 3)低于标准体重 5 公斤为过瘦。*/
#include<stdio.h>
#include<stdlib.h>
int main()
{
float h, w;
printf("Please input height and weight:");
scanf("%f %f", &h, &w);
if (w == h - 110)
printf("standard");
else if (w >= h - 110 + 5)
printf("fat");
else if (w <= h - 110 - 5)
printf("thin");
system("pause");
return 0;
}