当前位置:网站首页>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
边栏推荐
- Activereportsjs 3.1 Chinese version | | | activereportsjs 3.1 English version
- Tensorflow GPU installation
- STM32开发资料链接分享
- 筑梦数字时代,城链科技战略峰会西安站顺利落幕
- 让我们,从头到尾,通透网络I/O模型
- Windows installation mysql8 (5 minutes)
- How to evaluate load balancing performance parameters?
- NEON优化:关于交叉存取与反向交叉存取
- Summary of being a microservice R & D Engineer in the past year
- 「笔记」折半搜索(Meet in the Middle)
猜你喜欢
pyflink的安装和测试
【JVM调优实战100例】04——方法区调优实战(上)
Building a dream in the digital era, the Xi'an station of the city chain science and Technology Strategy Summit ended smoothly
迈动互联中标北京人寿保险,助推客户提升品牌价值
Data type of pytorch tensor
ARM裸板调试之JTAG原理
阿里云中mysql数据库被攻击了,最终数据找回来了
第六篇,STM32脉冲宽度调制(PWM)编程
Anfulai embedded weekly report no. 272: 2022.06.27--2022.07.03
Make a simple graphical interface with Tkinter
随机推荐
Make a simple graphical interface with Tkinter
Chenglian premium products has completed the first step to enter the international capital market by taking shares in halber international
Learning notes 5: ram and ROM
省市区三级坐标边界数据csv转JSON
做微服务研发工程师的一年来的总结
界面控件DevExpress WinForms皮肤编辑器的这个补丁,你了解了吗?
【案例分享】网络环路检测基本功能配置
Data type of pytorch tensor
Install Firefox browser on raspberry pie /arm device
实现mysql与ES的增量数据同步
「精致店主理人」青年创业孵化营·首期顺德场圆满结束!
【JVM调优实战100例】04——方法区调优实战(上)
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
The cost of returning tables in MySQL
tensorflow 1.14指定gpu运行设置
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?
Oracle:CDB限制PDB资源实战
Rainstorm effect in levels - ue5
pytorch之数据类型tensor
Let's see through the network i/o model from beginning to end