Keyboard input/Obtain a Y or N response: Difference between revisions
Content added Content deleted
Childishbeat (talk | contribs) m (→{{header|BASIC}}: The examples under the BASIC header are now in alphabetical order, hopefully making it easier for more people to find the specific example they're looking for.) |
Childishbeat (talk | contribs) m (→{{header|NS-HUBASIC}}: NS-HUBASIC example added) |
||
Line 1,150: | Line 1,150: | ||
otherwise Say 'Undecided' |
otherwise Say 'Undecided' |
||
End </lang> |
End </lang> |
||
=={{header|NS-HUBASIC}}== |
|||
<lang NS-HUBASIC>10 PRINT "PRESS Y OR N TO CONTINUE." |
|||
20 IF INKEY$<>"Y" AND INKEY$<>"N" THEN GOTO 20 |
|||
30 PRINT "THE RESPONSE WAS ";INKEY$;"."</lang> |
|||
=={{header|Oforth}}== |
=={{header|Oforth}}== |