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
Showing posts with label snippets. Show all posts
Showing posts with label snippets. Show all posts
Subscribe to:
Posts (Atom)