#include <stdio.h>
main()
{
float height,faHeight,moHeight;
char sex,sports,diet;
printf("请输入被测人信息:性别,是否喜爱运动,是否饮食良好:");
scanf("%f,%f,%f,%c,%c,%c",&height,&faHeight,&moHeight,&sex,&sports,&diet);
if(sex=='F' && sports=='Y' && diet=='Y')
{
height=((faHeight*0.923+moHeight)/2)*(1+0.02+0.015);
printf("%f",height);
}
......................
阅读全部 | 2018年10月31日 19:25