当前位置:网站首页>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
边栏推荐
- 接收用户输入,身高BMI体重指数检测小业务入门案例
- Fastdfs data migration operation record
- JTAG principle of arm bare board debugging
- LLDP兼容CDP功能配置
- Zabbix 5.0:通过LLD方式自动化监控阿里云RDS
- NEON优化:log10函数的优化案例
- How to evaluate load balancing performance parameters?
- Implementation principle of waitgroup in golang
- Lldp compatible CDP function configuration
- 「笔记」折半搜索(Meet in the Middle)
猜你喜欢
重上吹麻滩——段芝堂创始人翟立冬游记
The MySQL database in Alibaba cloud was attacked, and finally the data was found
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
Part V: STM32 system timer and general timer programming
Part IV: STM32 interrupt control programming
Activereportsjs 3.1 Chinese version | | | activereportsjs 3.1 English version
Dell筆記本周期性閃屏故障
Tensorflow GPU installation
"Exquisite store manager" youth entrepreneurship incubation camp - the first phase of Shunde market has been successfully completed!
JTAG principle of arm bare board debugging
随机推荐
Boot - Prometheus push gateway use
HMM notes
Meet in the middle
力扣1037. 有效的回旋镖
做微服务研发工程师的一年来的总结
Do you understand this patch of the interface control devaxpress WinForms skin editor?
Provincial and urban level three coordinate boundary data CSV to JSON
Build your own website (17)
实现mysql与ES的增量数据同步
【JVM调优实战100例】04——方法区调优实战(上)
迈动互联中标北京人寿保险,助推客户提升品牌价值
[Niuke] b-complete square
Informatics Orsay Ibn YBT 1172: find the factorial of n within 10000 | 1.6 14: find the factorial of n within 10000
Link sharing of STM32 development materials
MySQL中回表的代价
ZABBIX 5.0: automatically monitor Alibaba cloud RDS through LLD
from .cv2 import * ImportError: libGL.so.1: cannot open shared object file: No such file or direc
Segmenttree
Maidong Internet won the bid of Beijing life insurance to boost customers' brand value
View remote test data and records anytime, anywhere -- ipehub2 and ipemotion app