The creation and storage of the value stored in num, and all further requests from standard input exist outside the do while loop. Consider adding in the while loop a request to standard input: num = calculator.nextInt();
.
CLICK HERE to find out more related problems solutions.