package ex;
/*
 * Date: 2016/12/12
 * Author: 103051089 林冠磊
 */

import java.util.Scanner;
import java.util.ArrayList;
public class ex02_103051089 {
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
//		double n = sc.nextDouble();
//		System.out.println("AVG:"+ (float)(Math.round((n*100)))/100);

		
		while(true){
			String input = sc.nextLine() ;
			String[] strArray =  input.split(" ");
			if(strArray[0].equals("0")){
				System.out.println("bye");
				break;
			}
			double total = 0;
			for(int i = 0 ; i < strArray.length ; i++){
				total += Double.valueOf(strArray[i]);
			}
			System.out.println("Size:"+strArray.length);
//			System.out.println("Total:"+ total);
			System.out.println("AVG:"+ (double)total/strArray.length);
			System.out.println("AVG:"+ (Math.round(((total/(double)strArray.length)*1000f)))/1000f);
		}
		
	}
}

@@ -8,16 +8,96 @@
  ex;%0A/*%0A
+ * %E4%B8%80%E5%80%8B%E7%A8%8B%E5%BC%8F%E6%B1%82%E4%B8%80%E6%95%B4%E6%95%B8%E5%BA%8F%E5%88%97%E6%89%80%E5%90%AB%E4%B9%8B%E6%95%B4%E6%95%B8%E5%80%8B%E6%95%B8%E5%8F%8A%E5%B9%B3%E5%9D%87%E5%80%BC%E3%80%82%E4%B8%80%E6%95%B4%E6%95%B8%E5%BA%8F%E5%88%97%E4%BB%A5%E7%A9%BA%E7%99%BD%E9%8D%B5%E9%9A%94%E9%96%8B%E6%95%B8%E5%AD%97%E3%80%82%E5%BA%8F%E5%88%97%E6%89%80%E5%90%AB%E4%B9%8B%E6%95%B4%E6%95%B8%E5%80%8B%E6%95%B8%E5%8F%8A%E5%B9%B3%E5%9D%87%E5%80%BC%E3%80%82%E7%B2%BE%E7%A2%BA%E8%87%B3%E5%B0%8F%E6%95%B8%E9%BB%9E%E7%AC%AC 3 %E4%BD%8D(%E7%94%B1%E5%B0%8F%E6%95%B8%E9%BB%9E%E7%AC%AC 4 %E4%BD%8D%E5%9B%9B%E6%8D%A8%E4%BA%94%E5%85%A5)%0A
  * Date:

Update ex02_103051089.java