题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode3176 问题: If a list of (number, percent) pairs has been recorded, can we decide whether truncation or rounding KAV may use to calculate the percentage? 我们能通过…
排序,计算平均数。
package com.stx.exercise.p2;import java.util.Scanner;/*** This program can do receive some numbers .it will sort the numbers and calculate the average.* param va will be save the sum.* param num is record the array length.*/
…