当前位置:网站首页>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
边栏推荐
- Analysis of mutex principle in golang
- pyflink的安装和测试
- Summary of being a microservice R & D Engineer in the past year
- gnet: 一个轻量级且高性能的 Go 网络框架 使用笔记
- 批量获取中国所有行政区域经边界纬度坐标(到县区级别)
- golang中的Mutex原理解析
- 身体质量指数程序,入门写死的小程序项目
- 力扣1037. 有效的回旋镖
- Maidong Internet won the bid of Beijing life insurance to boost customers' brand value
- 第六篇,STM32脉冲宽度调制(PWM)编程
猜你喜欢
[case sharing] basic function configuration of network loop detection
重上吹麻滩——段芝堂创始人翟立冬游记
[HFCTF2020]BabyUpload session解析引擎
[user defined type] structure, union, enumeration
【JVM调优实战100例】05——方法区调优实战(下)
Lldp compatible CDP function configuration
[batch dos-cmd command - summary and summary] - string search, search, and filter commands (find, findstr), and the difference and discrimination between find and findstr
Niuke cold training camp 6B (Freund has no green name level)
「精致店主理人」青年创业孵化营·首期顺德场圆满结束!
Anfulai embedded weekly report no. 272: 2022.06.27--2022.07.03
随机推荐
【js】获取当前时间的前后n天或前后n个月(时分秒年月日都可)
重上吹麻滩——段芝堂创始人翟立冬游记
做微服务研发工程师的一年来的总结
力扣1037. 有效的回旋镖
腾讯云 WebShell 体验
How do novices get started and learn PostgreSQL?
SuperSocket 1.6 创建一个简易的报文长度在头部的Socket服务器
JTAG debugging experience of arm bare board debugging
第五篇,STM32系统定时器和通用定时器编程
[batch dos-cmd command - summary and summary] - view or modify file attributes (attrib), view and modify file association types (Assoc, ftype)
让我们,从头到尾,通透网络I/O模型
JTAG principle of arm bare board debugging
pytorch之数据类型tensor
What are the differences between Oracle Linux and CentOS?
Dynamic planning idea "from getting started to giving up"
[Batch dos - cmd Command - Summary and Summary] - String search, find, Filter Commands (FIND, findstr), differentiation and Analysis of Find and findstr
详解OpenCV的矩阵规范化函数normalize()【范围化矩阵的范数或值范围(归一化处理)】,并附NORM_MINMAX情况下的示例代码
How to evaluate load balancing performance parameters?
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
NEON优化:关于交叉存取与反向交叉存取