Newer
Older
Ruby / kudamono.rb
#!/usr/bin/env ruby
# coding: utf-8
kudamono=["いちご","もも","ぶどう"]
puts"好きな数を入れて。値を取り出そう"
x=gets.to_i
puts kudamono[x]