input = ""
#loop until q is pressed
while input != 'q' do
puts "- Menu A, b or c"
input = gets().chomp()
if input == 'q'
puts( "Bye" )
elsif input == 'a'
puts( "a" )
elsif input == 'b'
puts( "b" )
elsif input == 'c'
puts( "c" )
else
puts ( "You didn't press a b c " )
end
#end loop
end
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment