//Tyler Hart //period 5 //Adding.java //Adding Values in a loop //12/7/2015 import java.util.Scanner; public class Adding { public static void main( String [] args) { Scanner key = new Scanner(System.in); System.out.println("ADDTION!"); int t=0,n=1; while (n!=0) { System.out.println("The Total so far is " + t); System.out.print("Number: "); n = key.nextInt(); t = n +t; } System.out.println("The Total is " + t+ "!"); } }