#include<iostream>
using namespace std;
int main()
{
float height,weight;
cout<<"请输入身高和体重"<<endl;
cin>>height>>weight;
if(weight>(height-100)*1.2)
{
cout<<"超重"<<endl;
}
else
{
if(weight<(height-100)*0.8)
{
cout<<"超轻"<<endl;
}
else
{
cout<<"正常"<<endl;
}
}
return 0;
}
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
float x1,x2,y1,y2,D;
cout<<"请输入两点坐标"<<endl;
cin>>x1>>y1>>x2>>y2;
D=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
cout<<"两点距离为"<<D<<endl;
return 0;
}