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

Content added Content deleted
mNo edit summary
Line 988: Line 988:
end /*until*/
end /*until*/
/*stick a fork in it, we're all done. */</lang>
/*stick a fork in it, we're all done. */</lang>

=={{header|Ring}}==
<lang ring>
while true
give c
if c = "Y" see "You said yes!" + nl
but c = "N" see "You said no!" + nl
else see "Try again!" + nl ok
end
</lang>


=={{header|Ruby}}==
=={{header|Ruby}}==