Problem E: 她胖吗?
Time Limit: 1 Sec Memory Limit: 128 MB
Description
奚嘉嘉是位爱美的女孩,身高165cm,体重52.5kg,可还是为保持身材错过了好多口福。实际上,保持健康和快乐,无论胖瘦都是美。当然太胖或太瘦可能对健康不利,适当注意即可。我们要为奚嘉嘉这样的爱美女孩设计一个程序,提供身体、体重,给出建议。女性的标准体重是:身高(厘米)-100= 标准体重(公斤),超过标准体重20%以上者为肥胖,低于标准体重20%的为偏瘦,在肥胖与偏瘦之间为正常。
Input
身高(cm)与体重(kg)值,身高整数,体重是小数
Output
肥胖时输出high,正常时输出normal,偏瘦要输出low。(注意全用小写)
Sample Input
165 52.5
Sample Output
normal
HINT
#include<stdio.h>
int main()
{
int height;
float a,b;
float weight;
scanf("%d%f",&height,&weight);
a=(height-100)*1.2;
b=(height-100)*0.8;
if(weight>a)
printf("high");
else if(weight<b)
printf("low");
else
printf("normal");
return 0;
}