I put the insttruction: int i = sc.nextInt(); before the block while, the programme took too long time to run. However, when I put this instruction inside the block while, it works. Can someone explain to me why please?