#!/usr/bni/env ruby # -*- coding: utf-8 -*- tabemono =["魚","肉","野菜",] puts "好きな数字を入れて値を取り出そう" x = gets.to_i puts tabemono[x]