Contest2100 - 【少年宫】c++题单
2024-03-24 15:00:00
3333-03-24 19:00:00
信息与公告
#include<bits/stdc++.h>
using namespace std;
int main()
{
double a,b,c;
cin>>a>>b;
c=b/(a*a);
if(c>=40)
{
cout<<"极度肥胖";
}
else if(c>=28)
{
cout<<"肥胖";
}
else if(c>=24)
{
cout<<"偏胖";
}
else if (c>=18.5)
{
cout<<"正常";
}
else
{
cout<<"偏瘦";
}
}
using namespace std;
int main()
{
double a,b,c;
cin>>a>>b;
c=b/(a*a);
if(c>=40)
{
cout<<"极度肥胖";
}
else if(c>=28)
{
cout<<"肥胖";
}
else if(c>=24)
{
cout<<"偏胖";
}
else if (c>=18.5)
{
cout<<"正常";
}
else
{
cout<<"偏瘦";
}
}