一道编程题:《三国杀》中有种叫做“闪电”的牌,是否被闪电击中需要

2025-05-20 22:03:45
推荐回答(1个)
回答1:

#include
using namespace std;
const int inch2foot=12;
const double inch2meter=0.0254;
const double pound2kilo=2.2;
int main()
{
double foot,inch,pound,BMI,height,weight;
cout<<"输入身高(英尺 英寸):(如输入1 12,表示1英尺12英寸)" < cin>>foot>>inch;
cout<<"输入体重(单位:磅):"< cin>>pound;
height=inch2meter*(foot*inch2foot+inch);
weight=pound/pound2kilo;
cout<<"BMI="<}