五个输入数字的中位数!!! [英] The median of five input numbers!!!

查看:194
本文介绍了五个输入数字的中位数!!!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮我解决如何使用C ++编程来确定五个输入数字的中位数吗?

Can anyone help me how to program in C++ which determines the median of five input numbers?

推荐答案


任何人都可以帮助我如何用C ++编程,它决定了五个输入数字的中位数?
Can anyone help me how to program in C++ which determines the median of five input numbers?



给我公式和其他必要的输入。我会尽力帮助你

Give me the formula and other necesary inputs.I will try to help you



任何人都可以帮助我如何在C ++中编程,它决定了五个输入数字的中位数?
Can anyone help me how to program in C++ which determines the median of five input numbers?



当五个数字按顺序排列时,中位数是中间数字。用户可以按任何顺序输入值。所以你的程序必须确定哪个值是其他四个,例如,如果用户输入


41.52 27 96.01 12.1 103.55


然后程序应该输出


中位数41.52 27 96.01 12.1和103.55是41.52

the median is the middle number when the five numbers are arranged in order. the user can input the values in any order. so your program must determine which value is the other four for example, if the user enters

41.52 27 96.01 12.1 103.55

then the program should output

the median of 41.52 27 96.01 12.1 and 103.55 is 41.52


确定C ++中五个输入数字的中位数

----------------------------------------------- ---------------------------------


任何人都可以帮助我用C ++编程确定五个输入数字的中位数?


当五个数字按顺序排列时,中位数是中间数字。用户可以按任何顺序输入值。所以你的程序必须确定哪个值是其他四个,例如,如果用户输入


41.52 27 96.01 12.1 103.55


然后程序应该输出


中位数41.52 27 96.01 12.1和103.55是41.52


i不知道从哪里开始我假设使用如果功能
Determining the median of five input numbers in C++
--------------------------------------------------------------------------------

Can anyone help me how to program in C++ which determines the median of five input numbers?

the median is the middle number when the five numbers are arranged in order. the user can input the values in any order. so your program must determine which value is the other four for example, if the user enters

41.52 27 96.01 12.1 103.55

then the program should output

the median of 41.52 27 96.01 12.1 and 103.55 is 41.52

i don''t know where to start with im assuming to use if function


这篇关于五个输入数字的中位数!!!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆