This preview shows page 1. Sign up to view the full content.
Unformatted text preview: //update the balance System.out.printf("on year: %5d your balance should be: $%,.2f\n", year, balance); }//end of the loop //output System.out.println("the year you should take your money out is year:" + year); System.out.printf("your balance should be: $%,.2f\n", balance); //print System.out.println(year); } }...
View Full Document
- Fall '11