Assignemnt #67 and Adding Values Code /// Name: Yordan Rashkov /// Period: 7 /// Program Name: Adding Values /// File Name: AddingValues.java /// Date Finished: 1/7/2016 import java.util.Random; import java.util.Scanner; public class AddingValues { public static void main ( String[] args ) { Scanner keyboard = new Scanner(System.in); int newnumber, lastnumber, total; lastnumber = 0; System.out.println(); System.out.println(); System.out.println("I will add up the numbers that you give me!"); System.out.println(); System.out.print(" number: "); newnumber = keyboard.nextInt(); total = ( newnumber + lastnumber ); System.out.println(); System.out.println(" Your total value is " + total ); lastnumber = total; while ( newnumber != 0 ) { System.out.println(" The total so far is " + newnumber ); System.out.println(" Number: "); newnumber = keyboard.nextInt(); total = newnumber + lastnumber; System.out.println(" Your total value is " + total ); lastnumber = total; } if ( newnumber == 0 ) { System.out.println("The total is " + total ); } } }