当前位置:网站首页>Body mass index program, entry to write dead applet project
Body mass index program, entry to write dead applet project
2022-07-07 01:13:00 【Jinan medical applet champion】
Because one person has his own rhythm , you , My rhythm is obviously slow ? It's a beat slow , Then I feel normal rhythm , I was wrong .
#region 0.1 Body mass index program , Entry applet project
double height = 1.78; // Height variable , The unit is rice.
int weight = 75;// Weight variables , The unit is kilogram
double exponent = weight / (height * height); // BMI Calculation formula .0.1 Basic entry business logic code , Realize the function of the code
Console.WriteLine("--------- Introduction to height quality index small business project -----------");
Console.WriteLine(" Your height is :" +height);
Console.WriteLine(" Your weight is :"+weight);
Console.WriteLine(" Your BMI The body mass index is :" +exponent);
Console.Write(" Your weight belongs to : ");
//if If you judge
if (exponent<18.5)
{// Judge BMI Whether the index is less than 18.5
Console.WriteLine(" Underweight ");
}
else if(exponent>=18.5 && exponent <24.9)
{// Judge BMI Whether the index is greater than or equal to 18.5, And less than 24.9
Console.WriteLine(" normal range ");
}
else if(exponent >=24.9 && exponent <29.9)
{ // Judge BMI Whether the index is greater than or equal to 24.9, And less than 29.9
Console.WriteLine(" Overweight ");
}
else if (exponent >= 29.9)
{// Judge BMI Whether the index is greater than or equal to 29.9. If the above conditions hold , Just execute the code in braces , Otherwise, execute the code of other options .
Console.WriteLine(" obesity ");
}
Console.ReadLine();// Stop at the cursor position , According to the content
#endregion
effect
边栏推荐
- Oracle: Practice of CDB restricting PDB resources
- The printf function is realized through the serial port, and the serial port data reception is realized by interrupt
- Chenglian premium products has completed the first step to enter the international capital market by taking shares in halber international
- Maidong Internet won the bid of Beijing life insurance to boost customers' brand value
- Realize incremental data synchronization between MySQL and ES
- Part IV: STM32 interrupt control programming
- boot - prometheus-push gateway 使用
- 第五篇,STM32系统定时器和通用定时器编程
- Batch obtain the latitude coordinates of all administrative regions in China (to the county level)
- C# 计算农历日期方法 2022
猜你喜欢
Dell筆記本周期性閃屏故障
Installation and testing of pyflink
Telerik UI 2022 R2 SP1 Retail-Not Crack
UI control telerik UI for WinForms new theme - vs2022 heuristic theme
[Niuke] [noip2015] jumping stone
让我们,从头到尾,通透网络I/O模型
第五篇,STM32系统定时器和通用定时器编程
重上吹麻滩——段芝堂创始人翟立冬游记
Part V: STM32 system timer and general timer programming
Dynamic planning idea "from getting started to giving up"
随机推荐
UI control telerik UI for WinForms new theme - vs2022 heuristic theme
mysql: error while loading shared libraries: libtinfo. so. 5: cannot open shared object file: No such
There is an error in the paddehub application
Data type of pytorch tensor
[batch dos-cmd command - summary and summary] - view or modify file attributes (attrib), view and modify file association types (Assoc, ftype)
Rainstorm effect in levels - ue5
Force buckle 1037 Effective boomerang
gnet: 一个轻量级且高性能的 Go 网络框架 使用笔记
In rails, when the resource creation operation fails and render: new is called, why must the URL be changed to the index URL of the resource?
Dell Notebook Periodic Flash Screen Fault
[user defined type] structure, union, enumeration
动态规划思想《从入门到放弃》
[Niuke classic question 01] bit operation
[Niuke] b-complete square
城联优品入股浩柏国际进军国际资本市场,已完成第一步
系统休眠文件可以删除吗 系统休眠文件怎么删除
【案例分享】网络环路检测基本功能配置
第五篇,STM32系统定时器和通用定时器编程
NEON优化:性能优化常见问题QA
再聊聊我常用的15个数据源网站