Keyboard input/Obtain a Y or N response: Difference between revisions

Line 112:
==={{header|GWBASIC}}===
 
<lang gwbasic>10 clsCLS: PrintPRINT "Press Y or N to continue."
20 WHILE T$<>"y" AND T$<>"Y" AND T$<>"n" AND T$<>"N"
30 T$=""
Line 122:
90 PRINT "The response was "; T$
</lang>
 
 
==={{header|Locomotive Basic}}===
58

edits