题解 | #健康评估#
健康评估
http://www.nowcoder.com/practice/08b28e61ff6345febf09969b3a167f7e
#include<stdio.h> int main(){ double t,s,a; scanf("%lf %lf",&t,&s); a=t/(s*s); if(a>=18.5&&a<=23.9){ printf("Normal"); } else{ printf("Abnormal"); } }
健康评估
http://www.nowcoder.com/practice/08b28e61ff6345febf09969b3a167f7e
#include<stdio.h> int main(){ double t,s,a; scanf("%lf %lf",&t,&s); a=t/(s*s); if(a>=18.5&&a<=23.9){ printf("Normal"); } else{ printf("Abnormal"); } }
相关推荐