Sha256: e44fae9459499ca2bb4697704c41d1ff7da694560cb027d652a1036e3b35c381

Contents?: true

Size: 245 Bytes

Versions: 2

Compression:

Stored size: 245 Bytes

Contents

# 1.2-agreement.rb

puts "please input country"
country = gets.chomp

def agreement(country)
  if country == 'japan'
    return 'こんにちは'
  elsif country == 'us'
    return 'hello'
  else
    return '???'
  end
end

# agreement(country)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby_learner-1.0.1 questions/sequential_check/section_1/part_2/lib/answer.rb
ruby_learner-1.0.0 questions/sequential_check/section_1/part_2/lib/answer.rb