当前位置:网站首页>接收用户输入,身高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
边栏推荐
- Summary of being a microservice R & D Engineer in the past year
- Deep learning environment configuration jupyter notebook
- Openjudge noi 1.7 08: character substitution
- [force buckle]41 Missing first positive number
- Cause of handler memory leak
- pyflink的安装和测试
- [batch dos-cmd command - summary and summary] - view or modify file attributes (attrib), view and modify file association types (Assoc, ftype)
- pyflink的安装和测试
- 随时随地查看远程试验数据与记录——IPEhub2与IPEmotion APP
- Maidong Internet won the bid of Beijing life insurance to boost customers' brand value
猜你喜欢
Telerik UI 2022 R2 SP1 Retail-Not Crack
ARM裸板调试之JTAG调试体验
C9 colleges and universities, doctoral students make a statement of nature!
【批处理DOS-CMD命令-汇总和小结】-跳转、循环、条件命令(goto、errorlevel、if、for[读取、切分、提取字符串]、)cmd命令错误汇总,cmd错误
建立自己的网站(17)
Learn to use code to generate beautiful interface documents!!!
[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
深入探索编译插桩技术(四、ASM 探秘)
Segmenttree
Installation and testing of pyflink
随机推荐
城联优品入股浩柏国际进军国际资本市场,已完成第一步
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
C Primer Plus Chapter 14 (structure and other data forms)
ActiveReportsJS 3.1中文版|||ActiveReportsJS 3.1英文版
深度学习简史(二)
Maidong Internet won the bid of Beijing life insurance to boost customers' brand value
A brief history of deep learning (I)
Activereportsjs 3.1 Chinese version | | | activereportsjs 3.1 English version
mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such
一行代码实现地址信息解析
界面控件DevExpress WinForms皮肤编辑器的这个补丁,你了解了吗?
Openjudge noi 1.7 10: simple password
Cause of handler memory leak
Pytorch中torch和torchvision的安装
Part IV: STM32 interrupt control programming
再聊聊我常用的15个数据源网站
UI控件Telerik UI for WinForms新主题——VS2022启发式主题
[software reverse automation] complete collection of reverse tools
Let's talk about 15 data source websites I often use
腾讯云 WebShell 体验