Use a do-while to
write a code segment that keeps prompting the user for an integer
until the value is greater than 10.
It then prints the last value entered.
Scanner scan = new Scanner(System.in);
int value;
do {
System.out.println("Enter an integer greater than 10:");
value = scan.nextInt();
} while (value <= 10);
System.out.println("Got the number :"+value);