Created
December 8, 2018 01:38
-
-
Save ventureproz/0ff842486116013f83990bc577443e97 to your computer and use it in GitHub Desktop.
Simple name returned to variable and else and elsif conditionals
This file contains 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
puts "what is your name?" | |
name = gets.chomp | |
if name == "Zachary" | |
puts "Welcome to the program future ruby programmer, #{name}" | |
elsif name == "Melisa" | |
puts "welcome to the program, Melisa" | |
else | |
puts "welcome to the program, #{name}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Student Reference