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