Created
October 20, 2014 23:22
-
-
Save msmith7904/6b3b1c1a79fa883cb4c9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loop do | |
puts "The (L) Train, The (N) Train, The (S)ix Train" | |
puts "Do you wish to quit?" | |
continue = gets.chomp | |
if continue == "Yes" | |
puts "Thank You" | |
break | |
else | |
puts "Choose a train line by letter." | |
end | |
selection = gets.chomp.to_s | |
if selection == "L" | |
puts "You selected the L train." | |
puts "8th Ave, 6th Ave, Union Square, 3rd Ave, 1st Ave, Bedford Ave" | |
elsif selection == "N" | |
puts "You selected the N train." | |
puts "Times Square, Herald Square, 28th St, 23rd St - HMH Nexus, | |
Union Square, 8th Ave" | |
elsif selection == "S" | |
puts "You selected the Six Train." | |
puts "Grand Central, 33rd St, 28th St, 23rd St, Union Square, Astor Place" | |
else | |
puts "That's not one of the choices." | |
end | |
puts "Thank You" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment