Sha256: f7372a8bb3dce69632f96aa786843bcd46382ec7d98e4e9b0017b7a203d18d3c

Contents?: true

Size: 272 Bytes

Versions: 27

Compression:

Stored size: 272 Bytes

Contents

# -*- coding: utf-8 -*-
# section_2/answer.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

27 entries across 27 versions & 1 rubygems

Version Path
ruby_learner-1.1.4 questions/random_check/section_2/lib/answer.rb
ruby_learner-1.1.3 questions/random_check/section_2/lib/answer.rb
ruby_learner-1.1.2 questions/random_check/section_2/lib/answer.rb
ruby_learner-1.1.1 questions/random_check/section_2/lib/answer.rb
ruby_learner-1.1.0 questions/random_check/section_2/lib/answer.rb
ruby_learner-1.0.1 questions/random_check/section_2/lib/answer.rb
ruby_learner-1.0.0 questions/random_check/section_2/lib/answer.rb