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

no edit summary
No edit summary
Line 178:
</lang>
 
=={{header|Action!}}==
<lang Action!>PROC MAIN()
Byte Key=764
 
Printe("Press Y or N to continue")
 
key=255
 
Do
Until Key=43 or Key=35
Od
 
Print("You pressed ")
If Key=43 then Printe("Yes") Fi
If Key=35 then Printe("No ") Fi
 
RETURN</lang>
 
=={{header|Ada}}==
Anonymous user