
#include <stdioh>
void main()
{
int weight;
float height,bix;
printf("请输入你的体重:\n");
printf("请输入你的身高:");
scanf("%d%d",&weight,&height);
bix=weight/(heightheight);
printf("your bix is:%d",bix);
}
打开微信小程序常用计算器。
进入微信小程序后,点击Bmi计算器。
在Bmi计算器页面,选中女士,设置年龄、身高和体重。点击开始计算。
点击开始计算后即可女生bmi。
import javautilScanner;
import javalangDouble;
public class BMI{
public static void main(String [] args){
Scanner input=new Scanner(Systemin);
double x;
double y;
double end;
Systemoutprint("Enter Your weight(kg): ");
x=inputnextDouble();
Systemoutprint("Enter Your height(m): ");
y=inputnextDouble();
end= x/(yy);
Systemoutprintln("Your BMI is: "+end);
if(end<198){
Systemoutprintln("You are too thin");
}else if(end>=198 && end<242){
Systemoutprintln("You are normal, please keep");
}else if(end>=242 && end<25){
Systemoutprintln("Hey guy, you need to lose some weight");
}else if(end > 250){
Systemoutprintln("Oh my god, are you human being");
}
}
}
你的公式不对a/(b2),我帮你改成a/(b16),看起来差不多,实际公式是a=b-105是标准身材。 Private Sub Command1_Click()
Dim a As Single, b As Single, c As Single
a = Val(Text1)
b = Val(Text2)
c = Round(a / (b 16))
Label6Caption = c
If Option1Value Then
If c < 20 Then
Label8Caption = "过轻"
ElseIf c < 25 Then
Label8Caption = "适中"
ElseIf c < 30 Then
Label8Caption = "过重"
ElseIf c < 35 Then
Label8Caption = "肥胖"
ElseIf c >= 35 Then
Label8Caption = "非常肥胖"
End If
Else
If c < 19 Then
Label8Caption = "过轻"
ElseIf c < 24 Then
Label8Caption = "适中"
ElseIf c < 29 Then
Label8Caption = "过重"
ElseIf c < 34 Then
Label8Caption = "肥胖"
ElseIf c >= 34 Then
Label8Caption = "非常肥胖"
End If
End If
End Sub
性别分层随机抽样,则组成此参赛队的概率为
以上就是关于急!!请高手帮忙汇编语言的题目.全部的内容,包括:急!!请高手帮忙汇编语言的题目.、微信小程序功能代码bmi怎么计算、用Java编辑一个简单的程序用来计算体重是否超标 BMI=体重/身高的平方(初学者水平希望高手帮忙)等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)