import java.util.Scanner; public class PrePost { public static void main(String [] args) { int age; Scanner userInput; age = 0; userInput = new Scanner(System.in); System.out.println("Pre-test loop never runs because the BE is false"); while (age < 0) { System.out.print("Type in your age as a whole number: "); age = userInput.nextInt(); } System.out.println("You typed in " + age); System.out.println("\n\nPost-test loop guaranteed to run even when the BE is false"); do { System.out.print("Type in your age as a whole number: "); age = userInput.nextInt(); } while (age < 0); System.out.println("You typed in " + age); } }