import java.util.Scanner;
public class JPD03 {
static Scanner keyboard = new Scanner(System.in);
static int i = -1;
public static void main(String[] args) {
int total = 0, s = 0;
public class dwaadw {
static Scanner e=new Scanner(System.in);
public static void main(String[] args) {
int t = 0, o = 0;
do
{
t+=o;
System.out.println("請輸入消費金額,或輸入-1結束:");
o=e.nextInt();