Solutionunvalidated
You can use `System.out.flush()` before `scanner.nextInt();` to ensure that the output is immediately written to the console — another alternative is to use `System.out.println` Instead of `System.out.print`. Tension: output isn't necessarily displayed immediately. Outcome: This can lead to a situation where the program appears to pause while waiting for input.
0f785017-7256-4129-baac-cf79e4f05732
You can use System.out.flush() before scanner.nextInt(); to ensure that the output is immediately written to the console — another alternative is to use System.out.println Instead of System.out.print. Tension: output isn't necessarily displayed immediately. Outcome: This can lead to a situation where the program appears to pause while waiting for input.