当前位置:网站首页>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
#endregioneffect

边栏推荐
- Windows installation mysql8 (5 minutes)
- 深度学习框架TF安装
- 【JVM调优实战100例】04——方法区调优实战(上)
- Link sharing of STM32 development materials
- [C language] dynamic address book
- ESP Arduino (IV) PWM waveform control output
- Dell笔记本周期性闪屏故障
- Data type of pytorch tensor
- Tencent cloud webshell experience
- What are the differences between Oracle Linux and CentOS?
猜你喜欢

身体质量指数程序,入门写死的小程序项目

省市区三级坐标边界数据csv转JSON
![[100 cases of JVM tuning practice] 05 - Method area tuning practice (Part 2)](/img/40/dc45df3cd3ee7642277eff899bc6aa.png)
[100 cases of JVM tuning practice] 05 - Method area tuning practice (Part 2)
深入探索编译插桩技术(四、ASM 探秘)

Telerik UI 2022 R2 SP1 Retail-Not Crack
![[牛客] [NOIP2015]跳石头](/img/9f/b48f3c504e511e79935a481b15045e.png)
[牛客] [NOIP2015]跳石头

详解OpenCV的矩阵规范化函数normalize()【范围化矩阵的范数或值范围(归一化处理)】,并附NORM_MINMAX情况下的示例代码
![[user defined type] structure, union, enumeration](/img/a5/d6bcfb128ff6c64f9d18ac4c209210.jpg)
[user defined type] structure, union, enumeration

第五篇,STM32系统定时器和通用定时器编程
Summary of being a microservice R & D Engineer in the past year
随机推荐
深度学习框架TF安装
Oracle:CDB限制PDB资源实战
[JS] obtain the N days before and after the current time or the n months before and after the current time (hour, minute, second, year, month, day)
[100 cases of JVM tuning practice] 04 - Method area tuning practice (Part 1)
ZABBIX 5.0: automatically monitor Alibaba cloud RDS through LLD
[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
身体质量指数程序,入门写死的小程序项目
Force buckle 1037 Effective boomerang
【案例分享】网络环路检测基本功能配置
线段树(SegmentTree)
实现mysql与ES的增量数据同步
JTAG principle of arm bare board debugging
STM32开发资料链接分享
Supersocket 1.6 creates a simple socket server with message length in the header
Boot - Prometheus push gateway use
golang中的atomic,以及CAS操作
Can the system hibernation file be deleted? How to delete the system hibernation file
NEON优化:log10函数的优化案例
Deeply explore the compilation and pile insertion technology (IV. ASM exploration)
The printf function is realized through the serial port, and the serial port data reception is realized by interrupt