[Tutor] (no subject)

Amit Saha amitsaha.in at gmail.com
Sun Mar 31 03:52:02 CEST 2013


On Sun, Mar 31, 2013 at 11:49 AM, Soliman, Yasmin <ysoliman at uncc.edu> wrote:
> Hello everyone. How can I get a program to stop only when the user enters 'Quit'?

You would need an "infinite" loop in your program, where you take user
input. Check if the input entered was 'Quit', and only exit/break out
of your loop then, else continue doing something else.

HTH,
-Amit.


--
http://amitsaha.github.com/


More information about the Tutor mailing list