当前位置:网站首页>Receive user input, height BMI, BMI detection small business entry case
Receive user input, height BMI, BMI detection small business entry case
2022-07-07 01:13:00 【Jinan medical applet champion】
Can interact , Receive user input
#region Modify the height index small business item
// Receive the height entered by the user , Weight information . Then do a process . Not like book equally , Dead program .must Interact , Business processing .
Console.WriteLine(" Please enter your height ?");
//double height11 = DemoShenGao;
string height1 = Console.ReadLine();// Receiving user problem0.1 use double type , Need to transform , How to switch !?
// 0.2 String conversion to double type . Conduct a business transformation process . That way , The processed variables change , Need to deal with , The converted variable , Carry out logical processing at the business level . by height11 The variable .
double height11 = double.Parse(height1);
Console.WriteLine(" Please enter your weight ?");
// Weight receives user input variables Definition
string weight1 = Console.ReadLine();
// transformation double The use of
double weight11 = double.Parse(weight1);
//int weight1 = 75;// Weight variables , The unit is kilogram , kg
//https://www.youlai.cn/video/article/1E87BAaaYF.html BMI Calculation principle reference
double ex
边栏推荐
- 第五篇,STM32系统定时器和通用定时器编程
- Build your own website (17)
- 深入探索编译插桩技术(四、ASM 探秘)
- STM32开发资料链接分享
- Link sharing of STM32 development materials
- 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
- [batch dos-cmd command - summary and summary] - string search, search, and filter commands (find, findstr), and the difference and discrimination between find and findstr
- C# 计算农历日期方法 2022
- 动态规划思想《从入门到放弃》
- from .cv2 import * ImportError: libGL.so.1: cannot open shared object file: No such file or direc
猜你喜欢
动态规划思想《从入门到放弃》
Periodic flash screen failure of Dell notebook
ARM裸板调试之JTAG调试体验
Maidong Internet won the bid of Beijing life insurance to boost customers' brand value
Return to blowing marshland -- travel notes of zhailidong, founder of duanzhitang
[hfctf2020]babyupload session parsing engine
Can the system hibernation file be deleted? How to delete the system hibernation file
深入探索编译插桩技术(四、ASM 探秘)
Trace tool for MySQL further implementation plan
Part V: STM32 system timer and general timer programming
随机推荐
ZABBIX 5.0: automatically monitor Alibaba cloud RDS through LLD
Chenglian premium products has completed the first step to enter the international capital market by taking shares in halber international
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
深度学习简史(一)
ARM裸板调试之JTAG原理
JTAG principle of arm bare board debugging
Segmenttree
Dynamic planning idea "from getting started to giving up"
[batch dos-cmd command - summary and summary] - string search, search, and filter commands (find, findstr), and the difference and discrimination between find and findstr
How do novices get started and learn PostgreSQL?
Do you understand this patch of the interface control devaxpress WinForms skin editor?
taro3.*中使用 dva 入门级别的哦
《安富莱嵌入式周报》第272期:2022.06.27--2022.07.03
UI control telerik UI for WinForms new theme - vs2022 heuristic theme
深度学习简史(二)
迈动互联中标北京人寿保险,助推客户提升品牌价值
[hfctf2020]babyupload session parsing engine
Zabbix 5.0:通过LLD方式自动化监控阿里云RDS
Address information parsing in one line of code
城联优品入股浩柏国际进军国际资本市场,已完成第一步