Lecture Notes on 27 Jun 2012 Scanner sc = new Scanner (System.in); int month = 0; do { System.out.print ("Enter month (1 - 12): "); month = sc.nextInt(); } while (month < 1 || month > 12); while (month < 1 || month > 12) { System.out.print ("Enter month (1 - 12): "); month = sc.nextInt(); } int sum = 0; for (int i = 1; i <= 10; i++) { sum = sum + i; } int i = 1; while (i <= 10) { sum = sum + i; i++; } System.out.println (sum + " " + i);