This is a known issue that we plan to address.
As a workaround, you can add a pause immediately preceding the “input” command. For example:
yn= input('enter ''1'' to end the process or ''0'' to continue the loop\n');
This issue occurs because even though the code before the “input” command has executed, the Live Editor does not have a chance to show the output of the code until after the “input” command is executed. This results in the delayed behavior you are describing. By adding the short pause, the Live Editor is able to display outputs before the “input” command is executed.