题目
Java编程、输入数字个数、平均数、最小值、最大值减去最小值、
write a JAVA program to read in a sequence of integers and print out the following quantities,each on a new line and in the following order,your program should be:
1) the number of integers read in.
2) the average value- which need not be an integer.注意,平均值不是实数!
3) the minimum value of the integers.
4) the maximum difference between any of the integers.
以上要求顺序不能颠倒、跪求!
write a JAVA program to read in a sequence of integers and print out the following quantities,each on a new line and in the following order,your program should be:
1) the number of integers read in.
2) the average value- which need not be an integer.注意,平均值不是实数!
3) the minimum value of the integers.
4) the maximum difference between any of the integers.
以上要求顺序不能颠倒、跪求!
提问时间:2020-11-09
答案
测试通过,基本满足你题目要求,写得不太好import java.util.*;import java.util.regex.*;public class t10{public static void main(String [] args)throws InterruptedException{Scanner in=new Scanner(System.in);...
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
最新试题
热门考点
- 1I want to know that how long you will send it to my home?这句话为什么由that 和how 两个词引导?
- 2有五个数,前三个数的平均数是6后两个数的平均数是8求着五个的平均数
- 3(3^n+81)为完全平方数,正整数n有多少个?
- 4一条电阻丝接在电压为U的电路中,它的功率是P,下列措施可以使电阻丝的功率变为2P的是( ) A.两条相同的电阻丝串联起来 B.该电阻丝改接在电压是2U的电路中 C.将电流调大到原来的2倍
- 5假如你叫李强 你的笔友皮特,问你要怎么度过下次寒假.请用英语回信,70词左右
- 6纬度最小的纬线是?
- 7a*a+根号下(b-2)=4a-4 求根号下ab的值
- 8关于x、y的两个多项式²-15mx³y-2y²与-6x³y-7x²+5my²的差为二次二项式,求
- 9一辆客车从甲地开往乙地,当行驶到超过中点50千米处时,正好行完全程的70%,甲、乙两地相距多少千米?
- 10帮我找个初中化学实验