当前位置:网站首页>接收用户输入,身高BMI体重指数检测小业务入门案例
接收用户输入,身高BMI体重指数检测小业务入门案例
2022-07-06 17:23:00 【济南医疗小程序状元】
可以互动,接收用户输入
#region 修改身高指数小业务项目
// 接收用户输入的身高,体重信息。然后进行一个处理。而不是如book一样,写死的程序。must 互动起来,业务处理。
Console.WriteLine("请输入您的身高是多少?");
//double height11 = DemoShenGao;
string height1 = Console.ReadLine();// 接收用户 problem0.1 用double 类型,需要转换,怎么转换呢!?
// 0.2 字符串转换为double类型. 进行一个业务转换处理。 那样子,处理的变量就变化了,需要处理,转换后的变量,进行业务层面的逻辑处理。 为height11变量了。
double height11 = double.Parse(height1);
Console.WriteLine("请输入您的体重是多少?");
// 体重接收用户输入变量 定义
string weight1 = Console.ReadLine();
// 转换double 一样使用
double weight11 = double.Parse(weight1);
//int weight1 = 75;//体重变量,单位为千克 ,公斤
//https://www.youlai.cn/video/article/1E87BAaaYF.html BMI计算原理参考
double ex边栏推荐
- 自旋与sleep的区别
- Deep learning environment configuration jupyter notebook
- Dr selection of OSPF configuration for Huawei devices
- 通过串口实现printf函数,中断实现串口数据接收
- Telerik UI 2022 R2 SP1 Retail-Not Crack
- 【JVM调优实战100例】05——方法区调优实战(下)
- from . cv2 import * ImportError: libGL. so. 1: cannot open shared object file: No such file or direc
- Openjudge noi 1.7 10: simple password
- Configuring the stub area of OSPF for Huawei devices
- [batch dos-cmd command - summary and summary] - jump, cycle, condition commands (goto, errorlevel, if, for [read, segment, extract string]), CMD command error summary, CMD error
猜你喜欢

Deep learning environment configuration jupyter notebook

Make a simple graphical interface with Tkinter

UI控件Telerik UI for WinForms新主题——VS2022启发式主题

第七篇,STM32串口通信编程

【批处理DOS-CMD命令-汇总和小结】-字符串搜索、查找、筛选命令(find、findstr),Find和findstr的区别和辨析

Provincial and urban level three coordinate boundary data CSV to JSON

Equals() and hashcode()
![[Niuke classic question 01] bit operation](/img/f7/e3a482c379ec9bbdb453a05e5e08cb.jpg)
[Niuke classic question 01] bit operation

Maidong Internet won the bid of Beijing life insurance to boost customers' brand value

详解OpenCV的矩阵规范化函数normalize()【范围化矩阵的范数或值范围(归一化处理)】,并附NORM_MINMAX情况下的示例代码
随机推荐
Set (generic & list & Set & custom sort)
【批处理DOS-CMD命令-汇总和小结】-字符串搜索、查找、筛选命令(find、findstr),Find和findstr的区别和辨析
Windows installation mysql8 (5 minutes)
新手如何入门学习PostgreSQL?
Pytorch中torch和torchvision的安装
Threejs image deformation enlarge full screen animation JS special effect
How do novices get started and learn PostgreSQL?
[hfctf2020]babyupload session parsing engine
Build your own website (17)
筑梦数字时代,城链科技战略峰会西安站顺利落幕
Informatics Olympiad YBT 1171: factors of large integers | 1.6 13: factors of large integers
golang中的WaitGroup实现原理
Zabbix 5.0:通过LLD方式自动化监控阿里云RDS
MySQL中回表的代价
Tensorflow 1.14 specify GPU running settings
[牛客] [NOIP2015]跳石头
斗地主游戏的案例开发
Dell筆記本周期性閃屏故障
通过串口实现printf函数,中断实现串口数据接收
Leetcode (547) - number of provinces