Skip to content

Instantly share code, notes, and snippets.

@msmith7904
Created October 20, 2014 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msmith7904/d383b6fcd01241d384bd to your computer and use it in GitHub Desktop.
Save msmith7904/d383b6fcd01241d384bd to your computer and use it in GitHub Desktop.
puts "The (L) Train, The (N) Train, The (S)ix Train"
puts "Choose a train line by letter."
selection = gets.chomp.to_s
if selection == "L"
puts "You selected the L train."
elsif selection == "N"
puts "You selected the N train."
elsif selection == "S"
puts "You selected the Six Train."
else
puts "That's not one of the choices."
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment