Which programming language is this?
name = gets.chomp
if name.empty?
puts "Who are you?"
else
puts "Welcome, #{name}!"
end
Answer: Ruby
gets.chomp, the empty? predicate, puts and #{} interpolation closed by end are Ruby.name = gets.chomp
if name.empty?
puts "Who are you?"
else
puts "Welcome, #{name}!"
end
Answer: Ruby
gets.chomp, the empty? predicate, puts and #{} interpolation closed by end are Ruby.