Skip to content

Instantly share code, notes, and snippets.

@ventureproz
Created December 8, 2018 01:38
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 ventureproz/0ff842486116013f83990bc577443e97 to your computer and use it in GitHub Desktop.
Save ventureproz/0ff842486116013f83990bc577443e97 to your computer and use it in GitHub Desktop.
Simple name returned to variable and else and elsif conditionals
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
@ventureproz
Copy link
Author

Student Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment