当前位置:网站首页>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边栏推荐
- Openjudge noi 1.7 08: character substitution
- 第七篇,STM32串口通信编程
- JTAG principle of arm bare board debugging
- Installation and testing of pyflink
- The printf function is realized through the serial port, and the serial port data reception is realized by interrupt
- taro3.*中使用 dva 入门级别的哦
- Do you understand this patch of the interface control devaxpress WinForms skin editor?
- 批量获取中国所有行政区域经边界纬度坐标(到县区级别)
- Atomic in golang and CAS operations
- pyflink的安装和测试
猜你喜欢
随机推荐
pyflink的安装和测试
《安富莱嵌入式周报》第272期:2022.06.27--2022.07.03
Installation and testing of pyflink
Deep learning framework TF installation
pyflink的安装和测试
C Primer Plus Chapter 14 (structure and other data forms)
界面控件DevExpress WinForms皮肤编辑器的这个补丁,你了解了吗?
pytorch之数据类型tensor
Summary of being a microservice R & D Engineer in the past year
Mongodb client operation (mongorepository)
Let's see through the network i/o model from beginning to end
Trace tool for MySQL further implementation plan
UI控件Telerik UI for WinForms新主题——VS2022启发式主题
Do you understand this patch of the interface control devaxpress WinForms skin editor?
Part 7: STM32 serial communication programming
Openjudge noi 1.7 08: character substitution
城联优品入股浩柏国际进军国际资本市场,已完成第一步
paddlehub应用出现paddle包报错的问题
STM32开发资料链接分享
动态规划思想《从入门到放弃》





![[牛客] [NOIP2015]跳石头](/img/9f/b48f3c504e511e79935a481b15045e.png)
![[牛客] B-完全平方数](/img/bd/0812b4fb1c4f6217ad5a0f3f3b8d5e.png)

