返回列表 發帖

304--餐點費用

import java.util.Scanner;
public class JPD03 {
   

   
    public static void main(String[] args) {
        int total = 0;
        int s = 0;
        int count = 0;
        double average;
        
        System.out.print("Please enter meal dollars or enter -1 to stop: ");
        
        ...

        }
        System.out.println("餐點總費用:"________);
        System.out.printf(" %d 道餐點平均費用為: %.2f %n"____________);
    }
}
Stay hungry,
Stay foolish.

返回列表