#include <iostream>
using namespace std;
int main()
{
double shengao,tizhong,ans;
string name;
cout<<"欢迎使用体重指数评测软件"<<endl;
cout<<endl;
cout<<"你的姓名是"<<endl;
cin>>name;
cout<<"请输入你的身高"<<endl;
cin>>shengao;
cout<<"请输入你的体重"<<endl;
cin>>tizhong;
ans=tizhong/(shengao*shengao);
cout<<name<<"的体重指数是"<<ans<<endl;
cout<<endl;
system("pause");
return 0;
}
using namespace std;
int main()
{
double shengao,tizhong,ans;
string name;
cout<<"欢迎使用体重指数评测软件"<<endl;
cout<<endl;
cout<<"你的姓名是"<<endl;
cin>>name;
cout<<"请输入你的身高"<<endl;
cin>>shengao;
cout<<"请输入你的体重"<<endl;
cin>>tizhong;
ans=tizhong/(shengao*shengao);
cout<<name<<"的体重指数是"<<ans<<endl;
cout<<endl;
system("pause");
return 0;
}