当前位置:网站首页>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
边栏推荐
猜你喜欢
Dynamic planning idea "from getting started to giving up"
The MySQL database in Alibaba cloud was attacked, and finally the data was found
第四篇,STM32中断控制编程
Chenglian premium products has completed the first step to enter the international capital market by taking shares in halber international
Windows installation mysql8 (5 minutes)
Maidong Internet won the bid of Beijing life insurance to boost customers' brand value
[Batch dos - cmd Command - Summary and Summary] - String search, find, Filter Commands (FIND, findstr), differentiation and Analysis of Find and findstr
Anfulai embedded weekly report no. 272: 2022.06.27--2022.07.03
阿里云中mysql数据库被攻击了,最终数据找回来了
【JVM调优实战100例】05——方法区调优实战(下)
随机推荐
SuperSocket 1.6 创建一个简易的报文长度在头部的Socket服务器
Boot - Prometheus push gateway use
新手如何入门学习PostgreSQL?
[C language] dynamic address book
身体质量指数程序,入门写死的小程序项目
Summary of being a microservice R & D Engineer in the past year
ZABBIX 5.0: automatically monitor Alibaba cloud RDS through LLD
Install Firefox browser on raspberry pie /arm device
Installation and testing of pyflink
Activereportsjs 3.1 Chinese version | | | activereportsjs 3.1 English version
Atomic in golang, and cas Operations
paddlehub应用出现paddle包报错的问题
再聊聊我常用的15个数据源网站
A brief history of deep learning (I)
C# 计算农历日期方法 2022
Batch obtain the latitude coordinates of all administrative regions in China (to the county level)
View remote test data and records anytime, anywhere -- ipehub2 and ipemotion app
Supersocket 1.6 creates a simple socket server with message length in the header
深度学习框架TF安装
[JS] obtain the N days before and after the current time or the n months before and after the current time (hour, minute, second, year, month, day)