为什么六十分呢四五错误
查看原帖
为什么六十分呢四五错误
1594005
x1lixing3楼主2025/1/16 12:08
#include<iostream>
#include<stdio.h>

using namespace std;
double m,h,BMI;

int main(){
	cin>>m>>h;
	BMI=m/(h*h);
	if(BMI<18.5)cout<<"Underweight"<<endl;
	 if(BMI>=18.5&&BMI<24)
	cout<<"Nomal";
	if(BMI>=24)
	cout<<BMI<<endl<<"Overweight"<<endl;
	return 0;

2025/1/16 12:08
加载中...