当前位置:网站首页>身体质量指数程序,入门写死的小程序项目
身体质量指数程序,入门写死的小程序项目
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效果

边栏推荐
- Summary of being a microservice R & D Engineer in the past year
- STM32开发资料链接分享
- Deeply explore the compilation and pile insertion technology (IV. ASM exploration)
- Deep learning environment configuration jupyter notebook
- [force buckle]41 Missing first positive number
- Levels - UE5中的暴雨效果
- 随时随地查看远程试验数据与记录——IPEhub2与IPEmotion APP
- ZABBIX 5.0: automatically monitor Alibaba cloud RDS through LLD
- Telerik UI 2022 R2 SP1 Retail-Not Crack
- [100 cases of JVM tuning practice] 05 - Method area tuning practice (Part 2)
猜你喜欢

迈动互联中标北京人寿保险,助推客户提升品牌价值

资产安全问题或制约加密行业发展 风控+合规成为平台破局关键

详解OpenCV的矩阵规范化函数normalize()【范围化矩阵的范数或值范围(归一化处理)】,并附NORM_MINMAX情况下的示例代码

【JVM调优实战100例】04——方法区调优实战(上)

Part IV: STM32 interrupt control programming

Telerik UI 2022 R2 SP1 Retail-Not Crack

随时随地查看远程试验数据与记录——IPEhub2与IPEmotion APP
![[Batch dos - cmd Command - Summary and Summary] - String search, find, Filter Commands (FIND, findstr), differentiation and Analysis of Find and findstr](/img/4a/0dcc28f76ce99982f930c21d0d76c3.png)
[Batch dos - cmd Command - Summary and Summary] - String search, find, Filter Commands (FIND, findstr), differentiation and Analysis of Find and findstr

Do you understand this patch of the interface control devaxpress WinForms skin editor?

筑梦数字时代,城链科技战略峰会西安站顺利落幕
随机推荐
Segmenttree
Attention SLAM:一種從人類注意中學習的視覺單目SLAM
【js】获取当前时间的前后n天或前后n个月(时分秒年月日都可)
Chapter 5 DML data operation
Mongodb client operation (mongorepository)
Tensorflow GPU installation
动态规划思想《从入门到放弃》
「精致店主理人」青年创业孵化营·首期顺德场圆满结束!
ESP Arduino (IV) PWM waveform control output
from . cv2 import * ImportError: libGL. so. 1: cannot open shared object file: No such file or direc
SuperSocket 1.6 创建一个简易的报文长度在头部的Socket服务器
[force buckle]41 Missing first positive number
Set (generic & list & Set & custom sort)
界面控件DevExpress WinForms皮肤编辑器的这个补丁,你了解了吗?
Data processing of deep learning
MySQL中回表的代价
paddlehub应用出现paddle包报错的问题
mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such
Linear algebra of deep learning
[software reverse automation] complete collection of reverse tools