当前位置:网站首页>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
边栏推荐
- boot - prometheus-push gateway 使用
- 《安富莱嵌入式周报》第272期:2022.06.27--2022.07.03
- Dynamic planning idea "from getting started to giving up"
- 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
- BFS realizes breadth first traversal of adjacency matrix (with examples)
- LLDP兼容CDP功能配置
- 第六篇,STM32脉冲宽度调制(PWM)编程
- There is an error in the paddehub application
- pyflink的安装和测试
- Deep learning framework TF installation
猜你喜欢
阿里云中mysql数据库被攻击了,最终数据找回来了
windows安装mysql8(5分钟)
批量获取中国所有行政区域经边界纬度坐标(到县区级别)
[batch dos-cmd command - summary and summary] - string search, search, and filter commands (find, findstr), and the difference and discrimination between find and findstr
Part IV: STM32 interrupt control programming
Dynamic planning idea "from getting started to giving up"
Come on, don't spread it out. Fashion cloud secretly takes you to collect "cloud" wool, and then secretly builds a personal website to be the king of scrolls, hehe
golang中的Mutex原理解析
力扣1037. 有效的回旋镖
Summary of being a microservice R & D Engineer in the past year
随机推荐
【批處理DOS-CMD命令-匯總和小結】-字符串搜索、查找、篩選命令(find、findstr),Find和findstr的區別和辨析
Segmenttree
pytorch之数据类型tensor
Tensorflow 1.14 specify GPU running settings
golang中的Mutex原理解析
Failed to successfully launch or connect to a child MSBuild. exe process. Verify that the MSBuild. exe
阿里云中mysql数据库被攻击了,最终数据找回来了
资产安全问题或制约加密行业发展 风控+合规成为平台破局关键
Installation and testing of pyflink
第六篇,STM32脉冲宽度调制(PWM)编程
[牛客] [NOIP2015]跳石头
Fastdfs data migration operation record
[HFCTF2020]BabyUpload session解析引擎
省市区三级坐标边界数据csv转JSON
Summary of being a microservice R & D Engineer in the past year
力扣1037. 有效的回旋镖
Data type of pytorch tensor
mysql: error while loading shared libraries: libtinfo. so. 5: cannot open shared object file: No such
新手如何入门学习PostgreSQL?
Installation of torch and torch vision in pytorch