当前位置:网站首页>身体质量指数程序,入门写死的小程序项目
身体质量指数程序,入门写死的小程序项目
2022-07-06 17:23:00 【济南医疗小程序状元】
因为一个人有一个人的节奏,您,我的节奏显然是慢性子? 慢了一拍,然后还觉得正常节奏,就想错了。
#region 0.1 身体质量指数程序,入门小程序项目
double height = 1.78; // 身高变量,单位为米
int weight = 75;//体重变量,单位为千克
double exponent = weight / (height * height); // BMI计算公式。0.1 基础入门业务逻辑代码,实现代码功能所在
Console.WriteLine("---------身高质量指数小业务项目入门-----------");
Console.WriteLine("您的身高为:" +height);
Console.WriteLine("您的体重为:"+weight);
Console.WriteLine("您的BMI身体质量指数为:" +exponent);
Console.Write("您的体重属于: ");
//if 如果判断
if (exponent<18.5)
{// 判断BMI指数是否小于 18.5
Console.WriteLine("体重过轻");
}
else if(exponent>=18.5 && exponent <24.9)
{// 判断BMI指数是否大于或者等于18.5,并且小于24.9
Console.WriteLine("正常范围");
}
else if(exponent >=24.9 && exponent <29.9)
{ // 判断BMI指数是否大于等于24.9,并且小于29.9
Console.WriteLine("体重过重");
}
else if (exponent >= 29.9)
{// 判断BMI指数是否大于等于 29.9. 如果上面的条件成立,就执行大括号里面的代码,否则就执行其他选择选项的代码。
Console.WriteLine("肥胖");
}
Console.ReadLine();// 停到光标位置,显示内容
#endregion效果

边栏推荐
- Data type of pytorch tensor
- Configuring the stub area of OSPF for Huawei devices
- .class文件的字节码结构
- C Primer Plus Chapter 14 (structure and other data forms)
- Slow database query optimization
- Learn to use code to generate beautiful interface documents!!!
- 筑梦数字时代,城链科技战略峰会西安站顺利落幕
- 一行代码实现地址信息解析
- Installation and testing of pyflink
- Advantages and disadvantages of code cloning
猜你喜欢
![[user defined type] structure, union, enumeration](/img/a5/d6bcfb128ff6c64f9d18ac4c209210.jpg)
[user defined type] structure, union, enumeration

第六篇,STM32脉冲宽度调制(PWM)编程

UI control telerik UI for WinForms new theme - vs2022 heuristic theme

Part VI, STM32 pulse width modulation (PWM) programming
![[牛客] B-完全平方数](/img/bd/0812b4fb1c4f6217ad5a0f3f3b8d5e.png)
[牛客] B-完全平方数

Deep learning environment configuration jupyter notebook

Slam d'attention: un slam visuel monoculaire appris de l'attention humaine
![Explain in detail the matrix normalization function normalize() of OpenCV [norm or value range of the scoped matrix (normalization)], and attach norm_ Example code in the case of minmax](/img/87/3fee9e6f687b0c3efe7208a25f07f1.png)
Explain in detail the matrix normalization function normalize() of OpenCV [norm or value range of the scoped matrix (normalization)], and attach norm_ Example code in the case of minmax
![[batch dos-cmd command - summary and summary] - jump, cycle, condition commands (goto, errorlevel, if, for [read, segment, extract string]), CMD command error summary, CMD error](/img/a5/41d4cbc070d421093323dc189a05cf.png)
[batch dos-cmd command - summary and summary] - jump, cycle, condition commands (goto, errorlevel, if, for [read, segment, extract string]), CMD command error summary, CMD error
Summary of being a microservice R & D Engineer in the past year
随机推荐
Interface (interface related meaning, different abstract classes, interface callback)
Niuke cold training camp 6B (Freund has no green name level)
Js+svg love diffusion animation JS special effects
[HFCTF2020]BabyUpload session解析引擎
Part VI, STM32 pulse width modulation (PWM) programming
迈动互联中标北京人寿保险,助推客户提升品牌价值
Return to blowing marshland -- travel notes of zhailidong, founder of duanzhitang
boot - prometheus-push gateway 使用
Do you understand this patch of the interface control devaxpress WinForms skin editor?
Trace tool for MySQL further implementation plan
省市区三级坐标边界数据csv转JSON
做微服务研发工程师的一年来的总结
There is an error in the paddehub application
Deeply explore the compilation and pile insertion technology (IV. ASM exploration)
Part 7: STM32 serial communication programming
Learn to use code to generate beautiful interface documents!!!
pyflink的安装和测试
Let's talk about 15 data source websites I often use
深度学习简史(二)
Zabbix 5.0:通过LLD方式自动化监控阿里云RDS