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

Content added Content deleted
m (→‎{{header|ZX Spectrum BASIC}}: corrected language name)
(no need to press an enter)
Line 1: Line 1:
{{draft task}}
{{draft task}}


Obtain a valid Y or N response from the keyboard. The keyboard should be flushed, so that any outstanding keypresses are removed, preventing any exiting Y or N keypress from being evaluated
Obtain a valid Y or N response from the keyboard. The keyboard should be flushed, so that any outstanding keypresses are removed, preventing any exiting Y or N keypress from being evaluated. The response should be obtained as soon as Y or N are pressed, and there should be no need to press an enter key.

=={{header|BASIC}}==
=={{header|BASIC}}==