Re: Euphoria ASCII function revisited

new topic     » goto parent     » topic index » view thread      » older message » newer message

--OK, now I have it down to:

include get.e

atom k

while 1 do
    puts(1,"\nEnter y/n/q to quit: ")
    k = wait_key()
    if k = 'q' or k = 'Q' then
        exit
    end if
    if k = 'y' or k = 'Y' then
        puts(1,"\nyes")
    elsif k = 'n' or k = 'N' then
        puts(1,"\nno")
    else
        puts(1,"\nYou must enter y or n")
    end if
    printf(1,"\nYou entered %s as the answer.",k)
end while

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu