#!/usr/bin/env ruby #-*-coding:utf-8*- kago=["トマト","きゅうり","ナス ","ピーマン"] printf("%sを食べた。かごには%sがある。\n",kago.shift,kago.push("かぼちゃ"))