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

Content added Content deleted
m (→‎{{header|NS-HUBASIC}}: NS-HUBASIC example added)
Line 1,137: Line 1,137:
end while
end while
print "You pressed: " + k</lang>
print "You pressed: " + k</lang>

=={{header|MUMPS}}==
{{works with|Caché ObjectScript}}
Version from terminal shown below.
<lang MUMPS>for read !,"Enter Y or N to continue: ",input quit:input?1(1"Y",1"y",1"N",1"n")</lang>

{{out}}<pre>Enter Y or N to continue: J
Enter Y or N to continue: YES
Enter Y or N to continue: no
Enter Y or N to continue: N
SAMPLES> </pre>


=={{header|NetRexx}}==
=={{header|NetRexx}}==