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.
以上要求顺序不能颠倒、跪求!
人气:315 ℃ 时间:2020-04-08 08:32:12
解答
测试通过,基本满足你题目要求,写得不太好import java.util.*;import java.util.regex.*;public class t10{public static void main(String [] args)throws InterruptedException{Scanner in=new Scanner(System.in);...
推荐
猜你喜欢
- 将7.3克已经部分氧化的锌粉,加入98克百分之十的稀硫酸中,恰好完全反应,则所得溶液中溶质的质量是?希望有具体一点的解答,
- Do you think fireis our friend or enemy?作文 Free talk 100个单词以上,110个单词以下
- 1、x+7分之3=4分之3 2、 x-12分之5=8分之3 3、x-6分之5=1
- 《十五夜望月》不知秋思落谁家,“落”用得好不好,为什么
- it means you can‘t park your car
- 有谁知道是谁怎么样证明了偶数和自然数的个数相等?
- need not 和don t need 的区别
- 已知方程组3m-2x =4 ,x+2y =3 与mx-y= 2 ,mx-ny= 1的解相同,求m,n的值