Demonstrates how to setup a program to loop continuously based on user response. Software used in this demo is Xcode on a Mac. Note that the code for Windows is exactly the same.
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.